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/earth/EarthActivity.java
168 168

  
169 169
///////////////////////////////////////////////////////////////////////////////////////////////////
170 170

  
171
    void addNewPoint(float x, float y, EffectName effect)
171
    void addNewPoint(float longitude, float latitude, EffectName effect)
172 172
      {
173 173
      EarthSurfaceView view = this.findViewById(R.id.earthSurfaceView);
174 174
      EarthRenderer renderer = view.getRenderer();
175 175

  
176
      renderer.addNewPoint(x,y,effect);
176
      renderer.addNewPoint(longitude,latitude,effect);
177 177
      }
178 178

  
179 179
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff