Revision 9e7b6dbd
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/check/CheckRenderer.java | ||
---|---|---|
105 | 105 |
dSwirl.add(mSwirl1); |
106 | 106 |
dSwirl.add(mSwirl2); |
107 | 107 |
|
108 |
if( !mEffects.apply( new VertexEffectSwirl(new Static1D(30), dSwirl, new Static4D( 0,0,40,40)) ) )
|
|
108 |
if( !mEffects.apply( new VertexEffectSwirl(new Static1D(30), dSwirl, new Static4D( 0,0,0,40)) ) ) |
|
109 | 109 |
{ |
110 | 110 |
Log.e("Check", "Failed to add Swirl effect!"); |
111 | 111 |
} |
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.