Project

General

Profile

« Previous | Next » 

Revision 3fee789f

Added by Leszek Koltunski almost 7 years ago

Debugging Glow.

View differences:

src/main/java/org/distorted/examples/glow/GlowRenderer.java
24 24
import android.opengl.GLSurfaceView;
25 25

  
26 26
import org.distorted.examples.R;
27
import org.distorted.library.effect.EffectQuality;
27 28
import org.distorted.library.effect.MatrixEffectMove;
28 29
import org.distorted.library.effect.MatrixEffectScale;
29 30
import org.distorted.library.effect.PostprocessEffectGlow;
......
68 69
      mMove  = new Static3D(0,0,0);
69 70
      mScale = new Static3D(1,1,1);
70 71
      mRadius= new Static1D(25);
71

  
72 72
      mColor = new Static4D(1.0f,0.0f,0.0f,0.5f); // half-transparent red
73 73

  
74
      PostprocessEffectGlow glow = new PostprocessEffectGlow(mRadius,mColor);
75
      glow.setQuality(EffectQuality.HIGH);
76

  
74 77
      DistortedEffects effects = new DistortedEffects();
75 78
      effects.apply(new MatrixEffectMove(mMove));
76 79
      effects.apply(new MatrixEffectScale(mScale));
77
      effects.apply(new PostprocessEffectGlow(mRadius,mColor));
80
      effects.apply(glow);
78 81

  
79 82
      mScreen = new DistortedScreen();
80 83
      mScreen.attach(mLeaf, effects, new MeshFlat(1,1) );

Also available in: Unified diff