Revision dae661e9
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/catanddog/CatAndDogRenderer.java | ||
---|---|---|
93 | 93 |
diRotate.add(new Static1D(360)); |
94 | 94 |
|
95 | 95 |
mEffects = new DistortedEffects(); |
96 |
|
|
97 |
mEffects.apply( new MatrixEffectRotate( diRotate, new Static3D(0,0,1), mRotate) ); |
|
98 |
mEffects.apply( new MatrixEffectScale(diScale)); |
|
99 |
mEffects.apply( new MatrixEffectMove(moveDyn)); |
|
100 |
|
|
96 | 101 |
mEffects.apply( new FragmentEffectChroma( chromaDyn, new Static3D(1,0,0), chromaCenter, chromaRegion ,true) ); |
97 | 102 |
mEffects.apply( new FragmentEffectAlpha(alphaDyn, alphaCenter, alphaRegion, false) ); |
98 |
mEffects.apply( new MatrixEffectMove(moveDyn)); |
|
99 |
mEffects.apply( new MatrixEffectScale(diScale)); |
|
100 |
mEffects.apply( new MatrixEffectRotate( diRotate, new Static3D(0,0,1), mRotate) ); |
|
101 | 103 |
|
102 | 104 |
mScreen = new DistortedScreen(); |
103 | 105 |
} |
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!