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/wind/WindRenderer.java
73 73
      mObjWidth = mTexture.getWidth();
74 74
      mObjHeight= mTexture.getHeight();
75 75

  
76
      mManager.apply(effects);
77

  
76 78
      mMove = new Static3D(0,0,0);
77 79
      mScale= new Static3D(1,1,1);
78
      effects.apply( new MatrixEffectMove(mMove));
79
      effects.apply( new MatrixEffectScale(mScale));
80 80

  
81 81
      Static1D angle = new Static1D(-45);
82 82
      Static3D axis  = new Static3D(0,0,1);
83 83
      Static3D center= new Static3D(0,mObjHeight/2,0);
84 84

  
85 85
      effects.apply( new MatrixEffectRotate(angle, axis, center) );
86
      mManager.apply(effects);
86
      effects.apply( new MatrixEffectScale(mScale));
87
      effects.apply( new MatrixEffectMove(mMove));
87 88
      }
88 89

  
89 90
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff