commit 2a8ee74871a638b51f73358512cb8473e598c5d6
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Thu Jul 26 15:32:57 2018 +0100

    Progress with thr Glow effect - moving glow app looks ok now.

diff --git a/src/main/java/org/distorted/examples/TableOfContents.java b/src/main/java/org/distorted/examples/TableOfContents.java
index b61d18f..7732ec5 100644
--- a/src/main/java/org/distorted/examples/TableOfContents.java
+++ b/src/main/java/org/distorted/examples/TableOfContents.java
@@ -334,6 +334,15 @@ public class TableOfContents extends ListActivity
       activityMapping.put(i++, MirrorActivity.class);
    }
 
+   {
+      final Map<String, Object> item = new HashMap<>();
+      item.put(ITEM_IMAGE, R.drawable.icon_example_stencil);
+      item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_stencil));
+      item.put(ITEM_SUBTITLE, getText(R.string.example_stencil_subtitle));
+      data.add(item);
+      activityMapping.put(i++, StencilActivity.class);
+   }
+
    {
       final Map<String, Object> item = new HashMap<>();
       item.put(ITEM_IMAGE, R.drawable.icon_example_blur);
@@ -379,15 +388,6 @@ public class TableOfContents extends ListActivity
       activityMapping.put(i++, PostprocessTreeActivity.class);
    }
 
-   {
-      final Map<String, Object> item = new HashMap<>();
-      item.put(ITEM_IMAGE, R.drawable.icon_example_stencil);
-      item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_stencil));
-      item.put(ITEM_SUBTITLE, getText(R.string.example_stencil_subtitle));
-      data.add(item);
-      activityMapping.put(i++, StencilActivity.class);
-   }
-
    {
       final Map<String, Object> item = new HashMap<>();
       item.put(ITEM_IMAGE, R.drawable.icon_example_wip);
@@ -399,7 +399,7 @@ public class TableOfContents extends ListActivity
 
    {
       final Map<String, Object> item = new HashMap<>();
-      item.put(ITEM_IMAGE, R.drawable.icon_example_wip);
+      item.put(ITEM_IMAGE, R.drawable.icon_example_movingglow);
       item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_moving_glow));
       item.put(ITEM_SUBTITLE, getText(R.string.example_moving_glow_subtitle));
       data.add(item);
diff --git a/src/main/java/org/distorted/examples/movingglow/MovingGlowRenderer.java b/src/main/java/org/distorted/examples/movingglow/MovingGlowRenderer.java
index 3ff279a..49f25b7 100644
--- a/src/main/java/org/distorted/examples/movingglow/MovingGlowRenderer.java
+++ b/src/main/java/org/distorted/examples/movingglow/MovingGlowRenderer.java
@@ -54,7 +54,8 @@ import javax.microedition.khronos.opengles.GL10;
 
 class MovingGlowRenderer implements GLSurfaceView.Renderer,EffectListener
 {
-   private static final int[] colors  = new int[] {0,0,1,  0,0,0,  1,0,0,  1,1,0,  0,1,0,  1,1,1}; // blue, black, red, yellow, green, white
+   private static final int[] colors  = new int[] {0,0,1,  1,0,1,  1,0,0,  1,1,0,  0,1,0,  1,1,1}; // blue, pink, red, yellow, green, white
+   private static final int FLASH_TIME = 2000;
    private static final int LEAF_SIZE = 100;
    private static final int NUM_LEAVES= colors.length/3;
    
@@ -73,8 +74,8 @@ class MovingGlowRenderer implements GLSurfaceView.Renderer,EffectListener
       {     
       mView = v;
 
-      mRootW = 4*LEAF_SIZE;
-      mRootH = 4*LEAF_SIZE;
+      mRootW = 5*LEAF_SIZE;
+      mRootH = 5*LEAF_SIZE;
 
       mLeaf = new DistortedTexture(LEAF_SIZE,LEAF_SIZE);
       DistortedTexture surface = new DistortedTexture(mRootW,mRootH);
@@ -82,7 +83,7 @@ class MovingGlowRenderer implements GLSurfaceView.Renderer,EffectListener
 
       DistortedNode root = new DistortedNode(surface, new DistortedEffects(), mesh);
      
-      Static3D moveVector = new Static3D(0.25f*LEAF_SIZE, (mRootH-LEAF_SIZE)/2, 0);
+      Static3D moveVector = new Static3D(0.55f*LEAF_SIZE, (mRootH-LEAF_SIZE)/2, 0);
       Static1D chromaLevel= new Static1D(0.5f);
       Static3D center     = new Static3D(mRootW/2, mRootH/2, 0);
       Static3D axis       = new Static3D(0,0,1);
@@ -113,15 +114,15 @@ class MovingGlowRenderer implements GLSurfaceView.Renderer,EffectListener
       effects.apply(new MatrixEffectScale(mScale));
       effects.apply( new MatrixEffectRotate(rot, axis, center) );
 
-      Dynamic1D radiusDyn = new Dynamic1D(3000,1.0f);
+      Dynamic1D radiusDyn = new Dynamic1D(FLASH_TIME,1.0f);
       radiusDyn.add(new Static1D( 0));
       radiusDyn.add(new Static1D(50));
 
       for(int leaf=0; leaf<NUM_LEAVES; leaf++)
         {
-        Dynamic4D color= new Dynamic4D(3000,0.5f);
-        Static4D P1    = new Static4D(colors[3*leaf],colors[3*leaf+1], colors[3*leaf+2], 1);
-        Static4D P2    = new Static4D(colors[3*leaf],colors[3*leaf+1], colors[3*leaf+2], 1);
+        Dynamic4D color= new Dynamic4D(FLASH_TIME,1.0f);
+        Static4D P1    = new Static4D(colors[3*leaf],colors[3*leaf+1], colors[3*leaf+2], 0.0f);
+        Static4D P2    = new Static4D(colors[3*leaf],colors[3*leaf+1], colors[3*leaf+2], 1.0f);
         color.add(P1);
         color.add(P2);
 
