Revision 3f70dd29
Added by Leszek Koltunski over 6 years ago
src/main/java/org/distorted/examples/triblur/TriblurRenderer.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
private static final int[] OBJECTS = |
56 | 56 |
{ |
57 |
-100, 0, 0, 255, 0, 0, // x,y,z, R,G,B
|
|
58 |
// 0, 0, 0, 255, 255, 0, //
|
|
59 |
+100, 0, 0, 0, 255, 0, //
|
|
57 |
-150, 0, 0, 255, 0, 0, // x,y,z, R,G,B
|
|
58 |
0, 0, 0, 255, 255, 0, // |
|
59 |
+150, 0, 0, 0, 255, 0, //
|
|
60 | 60 |
}; |
61 | 61 |
|
62 | 62 |
private static final int NUM_OBJECTS = OBJECTS.length/NUM; |
... | ... | |
124 | 124 |
effects[i] = new DistortedEffects(); |
125 | 125 |
|
126 | 126 |
effects[i].apply(mBlur[i]); |
127 |
//effects[i].apply(chroma[i]);
|
|
128 |
effects[i].apply( (i==0||i==NUM_OBJECTS-1) ? moveEffect1 : moveEffect1 );
|
|
129 |
effects[i].apply( (i==0||i==NUM_OBJECTS-1) ? scaleEffect1 : scaleEffect1 );
|
|
127 |
effects[i].apply(chroma[i]); |
|
128 |
effects[i].apply( (i==0||i==NUM_OBJECTS-1) ? moveEffect1 : moveEffect2 );
|
|
129 |
effects[i].apply( (i==0||i==NUM_OBJECTS-1) ? scaleEffect1 : scaleEffect2 );
|
|
130 | 130 |
effects[i].apply(quatEffect1); |
131 | 131 |
effects[i].apply(quatEffect2); |
132 | 132 |
effects[i].apply(new MatrixEffectMove(moveVector[i])); |
Also available in: Unified diff
Try and avoid re-sorting the children by buckets (if we can!). This makes change in rendering order in the 'Transparency' app actually work.