Project

General

Profile

« Previous | Next » 

Revision 26c4e181

Added by Leszek Koltunski about 4 years ago

First fixes for moving the Vertex and Fragment centers of effect to the center of the Mesh.

View differences:

src/main/java/org/distorted/examples/projection/ProjectionRenderer.java
126 126
      mRegion.set(0,0,0,min/4);
127 127

  
128 128
      mPoint1.set(  width/4,   height/4, 0);
129
      mPoint2.set(3*width/4,   height/4, 0);
130
      mPoint3.set(  width/4, 3*height/4, 0);
131
      mPoint4.set(3*width/4, 3*height/4, 0);
129
      mPoint2.set( -width/4,   height/4, 0);
130
      mPoint3.set(  width/4,  -height/4, 0);
131
      mPoint4.set( -width/4,  -height/4, 0);
132 132

  
133 133
      // Avoid memory leaks: delete old texture if it exists (it might if we
134 134
      // got here after a brief amount of time spent in the background)

Also available in: Unified diff