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/flag/FlagRenderer.java
92 92
      mScale = new Static3D(1,1,1);
93 93
      mCenter= new Static3D(0,0,0);
94 94

  
95
      effects.apply( new MatrixEffectMove(mMove));
96
      effects.apply( new MatrixEffectScale(mScale));
97
      effects.apply( new MatrixEffectQuaternion(mQuat1, mCenter) );
98 95
      effects.apply( new MatrixEffectQuaternion(mQuat2, mCenter) );
96
      effects.apply( new MatrixEffectQuaternion(mQuat1, mCenter) );
97
      effects.apply( new MatrixEffectScale(mScale));
98
      effects.apply( new MatrixEffectMove(mMove));
99 99

  
100 100
      final int GRIDX = 50;
101 101
      final int GRIDY = 30;

Also available in: Unified diff