commit d10169202db10e32930b7e4a6c14d5aec05d9160
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Tue May 5 13:55:59 2020 +0100

    Change the Postprocessing effects: separate the radius and the halo.
    Reason: we needed a way to specify the size of the halo around a postprocessed object; before it was automatically (and not very correctly) computed from the radius - before we knew the size of the object's bounding box, so this automatic computation was possible. Now we're removing the MashBase.getBounding(0 API, so the size of the halo has to be explicitly given by the user. This way is more correct anyway and gives the user more control (as the Multiblur app proves!)
    
    Warning: here for the first time I can see that the 2 Examples (PostprocessingTree and MovingGlow) sometimes would not appear (black screen). Maybe this commit introduces such a bug - investigate.

diff --git a/src/main/java/org/distorted/effects/win/WinEffectGlow.java b/src/main/java/org/distorted/effects/win/WinEffectGlow.java
index 6304fa66..62bd0aa3 100644
--- a/src/main/java/org/distorted/effects/win/WinEffectGlow.java
+++ b/src/main/java/org/distorted/effects/win/WinEffectGlow.java
@@ -23,8 +23,10 @@ import org.distorted.library.effect.Effect;
 import org.distorted.library.effect.PostprocessEffectGlow;
 import org.distorted.library.effect.VertexEffectSink;
 import org.distorted.library.type.Dynamic1D;
+import org.distorted.library.type.Dynamic2D;
 import org.distorted.library.type.Dynamic4D;
 import org.distorted.library.type.Static1D;
+import org.distorted.library.type.Static2D;
 import org.distorted.library.type.Static3D;
 import org.distorted.library.type.Static4D;
 
@@ -42,10 +44,10 @@ public class WinEffectGlow extends WinEffect
     mNodeEffectPosition = new int[] {-1, -1};
     mNodeEffects        = new Effect[mNodeEffectPosition.length];
 
-    Dynamic1D radiusDyn = new Dynamic1D(duration,1.0f);
-    radiusDyn.add(new Static1D( 0));
-    radiusDyn.add(new Static1D(12));
-    radiusDyn.add(new Static1D( 0));
+    Dynamic2D haloRadiusDyn = new Dynamic2D(duration,1.0f);
+    haloRadiusDyn.add(new Static2D( 0, 0));
+    haloRadiusDyn.add(new Static2D(20,50));
+    haloRadiusDyn.add(new Static2D( 0, 0));
 
     Dynamic4D color= new Dynamic4D(duration,1.0f);
     Static4D P1    = new Static4D(colors[3*INDEX],colors[3*INDEX+1], colors[3*INDEX+2], 0.0f);
@@ -54,7 +56,7 @@ public class WinEffectGlow extends WinEffect
     color.add(P2);
     color.add(P1);
 
-    mNodeEffects[0] = new PostprocessEffectGlow(radiusDyn,color);
+    mNodeEffects[0] = new PostprocessEffectGlow(haloRadiusDyn,color);
 
     Dynamic1D degreeDyn= new Dynamic1D(duration,1.0f);
     degreeDyn.add(new Static1D(1.0f));
