Revision dae661e9
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/objecttree/ObjectTreeRenderer.java | ||
---|---|---|
79 | 79 |
chromaDyn.add(new Static1D(0.8f)); |
80 | 80 |
|
81 | 81 |
mEffects= new DistortedEffects(); |
82 |
mEffects.apply(new MatrixEffectMove(mMove)); |
|
83 | 82 |
mEffects.apply(new MatrixEffectScale(mScale)); |
83 |
mEffects.apply(new MatrixEffectMove(mMove)); |
|
84 | 84 |
mEffects.apply(new FragmentEffectChroma(chromaDyn, new Static3D(0,0,1))); |
85 | 85 |
|
86 | 86 |
mScreen = new DistortedScreen(); |
... | ... | |
202 | 202 |
float factor = lisaWidth/(2.0f*gridWidth); |
203 | 203 |
MatrixEffectMove move = new MatrixEffectMove( new Static3D((lisaWidth-factor*gridWidth)/2,(lisaHeight-factor*gridHeight)/2, gridWidth/(2.0f*GRID))); |
204 | 204 |
MatrixEffectScale scale = new MatrixEffectScale( new Static3D(factor,factor,factor) ); |
205 |
gridEffects.apply(move); |
|
206 | 205 |
gridEffects.apply(scale); |
206 |
gridEffects.apply(move); |
|
207 | 207 |
|
208 | 208 |
Dynamic1D rotDyn = new Dynamic1D(12000,0.0f); |
209 | 209 |
rotDyn.add(new Static1D( 0)); |
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!