Project

General

Profile

« Previous | Next » 

Revision 9e7b6dbd

Added by Leszek Koltunski over 5 years ago

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.

View differences:

src/main/java/org/distorted/examples/movingeffects/MovingEffectsSurfaceView.java
123 123
      mSize2 = max/80;
124 124
      mSizeR = max/6;
125 125

  
126
      mRegionVertex.set(0,0, mSizeR,mSizeR);
126
      mRegionVertex.set(0,0,0,mSizeR);
127 127
      mDistort.set3(max/10);
128 128
      }
129 129

  

Also available in: Unified diff