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/inflate/InflateRenderer.java
88 88
      quatInt2.add(mQuat2);
89 89

  
90 90
      mEffects = new DistortedEffects();
91
      mEffects.apply( new MatrixEffectMove(mMove) );
92
      mEffects.apply( new MatrixEffectScale(mScale));
93
      mEffects.apply( new MatrixEffectQuaternion(quatInt1, mCenter) );
94 91
      mEffects.apply( new MatrixEffectQuaternion(quatInt2, mCenter) );
92
      mEffects.apply( new MatrixEffectQuaternion(quatInt1, mCenter) );
93
      mEffects.apply( new MatrixEffectScale(mScale));
94
      mEffects.apply( new MatrixEffectMove(mMove) );
95 95
      mEffects.apply( new FragmentEffectAlpha(mAlpha));
96 96

  
97 97
      mScreen = new DistortedScreen();

Also available in: Unified diff