Revision 9e7b6dbd
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/projection/ProjectionRenderer.java | ||
---|---|---|
123 | 123 |
int min = width<height ? width:height; |
124 | 124 |
|
125 | 125 |
mVector.set(0,0,min/5); |
126 |
mRegion.set(0,0,min/5,min/5);
|
|
126 |
mRegion.set(0,0,0,min/5);
|
|
127 | 127 |
|
128 | 128 |
mPoint1.set( width/4, height/4, 0); |
129 | 129 |
mPoint2.set(3*width/4, height/4, 0); |
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.