Revision 9e7b6dbd
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/listener/ListenerRenderer.java | ||
---|---|---|
93 | 93 |
dDistort.add(new Static3D(0,0, 0)); |
94 | 94 |
dDistort.add(new Static3D(0,0,height)); |
95 | 95 |
|
96 |
return mEffects.apply( new VertexEffectDistort(dDistort, new Static3D(pointx,pointy,0), new Static4D(0,0,radius,radius)) );
|
|
96 |
return mEffects.apply( new VertexEffectDistort(dDistort, new Static3D(pointx,pointy,0), new Static4D(0,0,0,radius)) );
|
|
97 | 97 |
} |
98 | 98 |
|
99 | 99 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
180 | 180 |
} |
181 | 181 |
catch(Exception ex) |
182 | 182 |
{ |
183 |
android.util.Log.e("Renderer", ex.getMessage() );
|
|
183 |
android.util.Log.e("Listener", ex.getMessage() );
|
|
184 | 184 |
} |
185 | 185 |
} |
186 | 186 |
} |
Also available in: Unified diff
Redefine the Vertex Region from (x,y,r,unused) to (x,y,z,r). This takes into account the 'Z', which makes it possible to warp only one side of a 3D Mesh like Sphere.
Also corresponding changes in applications.