Revision 1440748a
Added by Leszek Koltunski over 7 years ago
| src/main/java/org/distorted/examples/triblur/TriblurRenderer.java | ||
|---|---|---|
| 54 | 54 |
|
| 55 | 55 |
private static final int[] OBJECTS = |
| 56 | 56 |
{
|
| 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, //
|
|
| 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, //
|
|
| 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 : moveEffect2 );
|
|
| 129 |
effects[i].apply( (i==0||i==NUM_OBJECTS-1) ? scaleEffect1 : scaleEffect2 );
|
|
| 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 );
|
|
| 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
In an attempt to contain the flashes on Mali GPU, re-structure the post-processing FBOs from 1 FBO with 2 color attachments + combined depth-stencil to 2 separate FBOs sharing a depth-stencil texture.
Result: this appears to make the flashes slightly worse.