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/triblur/TriblurRenderer.java
130 130

  
131 131
        effects[i].apply(mBlur[i]);
132 132
        effects[i].apply(chroma[i]);
133
        effects[i].apply( (i==0||i==NUM_OBJECTS-1) ?  moveEffect1 :  moveEffect2 );
134
        effects[i].apply( (i==0||i==NUM_OBJECTS-1) ? scaleEffect1 : scaleEffect2 );
135
        effects[i].apply(quatEffect1);
136
        effects[i].apply(quatEffect2);
133

  
137 134
        effects[i].apply(new MatrixEffectMove(moveVector[i]));
135
        effects[i].apply(quatEffect2);
136
        effects[i].apply(quatEffect1);
137
        effects[i].apply( (i==0||i==NUM_OBJECTS-1) ? scaleEffect1 : scaleEffect2 );
138
        effects[i].apply( (i==0||i==NUM_OBJECTS-1) ?  moveEffect1 :  moveEffect2 );
138 139

  
139 140
        mEffectStatus[i] = 1;
140 141
        mNode[i] = new DistortedNode(mTex, effects[i], mesh );

Also available in: Unified diff