Revision 9e7b6dbd
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/flag/FlagRenderer.java | ||
---|---|---|
85 | 85 |
mQuat2 = new Static4D(-0.25189602f,0.3546389f,0.009657208f,0.90038127f); // something semi-random that looks good |
86 | 86 |
|
87 | 87 |
Static3D waveCenter = new Static3D(mObjWidth, mObjHeight/2, 0); // middle of the right edge |
88 |
Static4D waveRegion = new Static4D(0,0,mObjWidth,mObjWidth);
|
|
88 |
Static4D waveRegion = new Static4D(0,0,0,mObjWidth);
|
|
89 | 89 |
|
90 | 90 |
mEffects.apply( new VertexEffectWave(mWaveDyn, waveCenter, waveRegion) ); |
91 | 91 |
|
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.