Project

General

Profile

« Previous | Next » 

Revision 1585ba24

Added by Leszek Koltunski over 5 years ago

Make the Fragment effects truly 3D: change their 4D 'region' into a 3D 'center' (a point in 3D) and 3D 'region' (which is now a set of 3 radii defining an ellipsoid around the center)

Also corresponding changes to the applications.

View differences:

src/main/java/org/distorted/examples/deform/DeformRenderer.java
157 157

  
158 158
   void setRegionRadius(int r)
159 159
      {
160
      mRadius = ( r==100 ? 100.0f : r/100.0f);
160
      mRadius = ( r==100 ? 100.0f : r/200.0f);
161 161
      mRegion.set4(mRadius*scrWidth);
162 162
      }
163 163

  

Also available in: Unified diff