Project

General

Profile

« Previous | Next » 

Revision 885b9cca

Added by Leszek Koltunski almost 7 years ago

Move all the knowledge about Vertex and Fragment effects to their respective classes.

View differences:

src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldRenderer.java
26 26
import org.distorted.examples.R;
27 27
import org.distorted.library.effect.EffectName;
28 28
import org.distorted.library.effect.EffectType;
29
import org.distorted.library.effect.FragmentEffectChroma;
30
import org.distorted.library.effect.FragmentEffectContrast;
29 31
import org.distorted.library.effect.MatrixEffectMove;
30 32
import org.distorted.library.effect.MatrixEffectScale;
33
import org.distorted.library.effect.VertexEffectDistort;
34
import org.distorted.library.effect.VertexEffectPinch;
35
import org.distorted.library.effect.VertexEffectSink;
36
import org.distorted.library.effect.VertexEffectSwirl;
31 37
import org.distorted.library.main.Distorted;
32 38
import org.distorted.library.main.DistortedEffects;
33 39
import org.distorted.library.main.DistortedScreen;
......
142 148
      mScreen.detachAll();
143 149
      mScreen.attach(mTexture, mEffects, mMesh);
144 150

  
145
      DistortedEffects.enableEffect(EffectName.DISTORT);
146
      DistortedEffects.enableEffect(EffectName.SINK);
147
      DistortedEffects.enableEffect(EffectName.PINCH);
148
      DistortedEffects.enableEffect(EffectName.SWIRL);
149
      DistortedEffects.enableEffect(EffectName.CHROMA);
150
      DistortedEffects.enableEffect(EffectName.SMOOTH_CHROMA);
151
      DistortedEffects.enableEffect(EffectName.CONTRAST);
151
      VertexEffectDistort.enable();
152
      VertexEffectSink.enable();
153
      VertexEffectPinch.enable();
154
      VertexEffectSwirl.enable();
155
      FragmentEffectChroma.enable();
156
      FragmentEffectContrast.enable();
152 157

  
153 158
      try
154 159
        {

Also available in: Unified diff