commit 88048c61564a3e73d5b21b3d1c921a5c693c58e6
Author: Leszek Koltunski <leszek@distorted.org>
Date:   Sat Dec 17 01:20:20 2016 +0000

    Beginnings of support for postprocessing Effects.

diff --git a/src/main/java/org/distorted/examples/mirror/MirrorRenderer.java b/src/main/java/org/distorted/examples/mirror/MirrorRenderer.java
index 5f873e2..d5de2e3 100644
--- a/src/main/java/org/distorted/examples/mirror/MirrorRenderer.java
+++ b/src/main/java/org/distorted/examples/mirror/MirrorRenderer.java
@@ -31,6 +31,7 @@ import org.distorted.library.DistortedFramebuffer;
 import org.distorted.library.DistortedTexture;
 import org.distorted.library.GridFlat;
 import org.distorted.library.type.Dynamic3D;
+import org.distorted.library.type.Static1D;
 import org.distorted.library.type.Static3D;
 
 import java.io.IOException;
@@ -43,11 +44,12 @@ import javax.microedition.khronos.opengles.GL10;
 
 class MirrorRenderer implements GLSurfaceView.Renderer
 {
-   private static final float MIRROR_SCALE = 0.70f;  // each next mirror will be 70% of the size or the previous
-   private static final float HEAD_SCALE   = 0.30f;  // Head's height will be 30% of the height of the mirror
-   private static final float MIRROR_MARGIN= 0.11f;  // The frame of the mirror takes up 11% of its width
-   private static final float MIRROR_MOVE  = 0.12f;  // Each next mirror is moved to the right by 12% of
-                                                     // the length of the previous one
+   private static final float MIRROR_SCALE     =0.70f;  // each next mirror will be 70% of the size or the previous
+   private static final float HEAD_SCALE       =0.30f;  // Head's height will be 30% of the height of the mirror
+   private static final float MIRROR_BRIGHTNESS=0.70f;  // Each next mirror 30% darker
+   private static final float MIRROR_MARGIN    =0.11f;  // The frame of the mirror takes up 11% of its width
+   private static final float MIRROR_MOVE      =0.12f;  // Each next mirror is moved to the right by 12% of
+                                                        // the length of the previous one
 
    private GLSurfaceView mView;
    private DistortedEffects mEffectsMirror, mEffectsHead, mEffectsNull;
@@ -136,6 +138,7 @@ class MirrorRenderer implements GLSurfaceView.Renderer
 
         mEffectsMirror.scale( new Static3D( (float)mScreenW/mMirrorW, (float)mScreenH/mMirrorH, 1.0f) );
         mEffectsOffscreen1.scale(MIRROR_SCALE);
+        mEffectsOffscreen1.brightness(new Static1D(MIRROR_BRIGHTNESS));
         mEffectsOffscreen2.move( new Static3D( MIRROR_MOVE*mScreenW, MIRROR_MOVE*mScreenH*mMirrorW/mMirrorH, 0) );
 
         mEffectsHead.move(mHeadDyn);
