Project

General

Profile

« Previous | Next » 

Revision 334c13fa

Added by Leszek Koltunski over 7 years ago

Make the effect Center be always 3D.

View differences:

src/main/java/org/distorted/examples/fov/FOVRenderer.java
117 117
      Static3D vector = new Static3D(0,0,min/5);
118 118
      Static4D region = new Static4D(0,0,min/5,min/5);
119 119

  
120
      fov.distort(vector, new Static2D(  w/4,   h/4), region);
121
      fov.distort(vector, new Static2D(3*w/4,   h/4), region);
122
      fov.distort(vector, new Static2D(  w/4, 3*h/4), region);
123
      fov.distort(vector, new Static2D(3*w/4, 3*h/4), region);
120
      fov.distort(vector, new Static3D(  w/4,   h/4, 0), region);
121
      fov.distort(vector, new Static3D(3*w/4,   h/4, 0), region);
122
      fov.distort(vector, new Static3D(  w/4, 3*h/4, 0), region);
123
      fov.distort(vector, new Static3D(3*w/4, 3*h/4, 0), region);
124 124
      }
125 125

  
126 126
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff