Revision dae661e9
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.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 | 95 |
effects.apply( new MatrixEffectQuaternion(rot,mCenter) ); |
96 |
effects.apply( new MatrixEffectScale(mScale)); |
|
97 |
effects.apply( new MatrixEffectMove(mMove)); |
|
98 | 98 |
|
99 | 99 |
mScreen = new DistortedScreen(); |
100 | 100 |
mScreen.attach(mTexture,effects,mMesh); |
Also available in: Unified diff
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!