Project

General

Profile

« Previous | Next » 

Revision dae661e9

Added by Leszek Koltunski about 5 years ago

Invert the order of Matrix Effects. Now, just as in the other queues, the first matrix effect is actually the first to act on the object - not the other way around!

View differences:

src/main/java/org/distorted/examples/earth/EarthRenderer.java
132 132
      quatInt2.add(mQuat2);
133 133

  
134 134
      mEffects = new DistortedEffects();
135
      mEffects.apply( new MatrixEffectMove(mMove) );
136
      mEffects.apply( new MatrixEffectScale(scale));
137
      mEffects.apply( new MatrixEffectQuaternion(quatInt1, mCenter) );
138 135
      mEffects.apply( new MatrixEffectQuaternion(quatInt2, mCenter) );
136
      mEffects.apply( new MatrixEffectQuaternion(quatInt1, mCenter) );
137
      mEffects.apply( new MatrixEffectScale(scale));
138
      mEffects.apply( new MatrixEffectMove(mMove) );
139 139

  
140 140
      mScreen = new DistortedScreen();
141 141
      mScreen.setProjection(FOV, NEAR);

Also available in: Unified diff