Project

General

Profile

« Previous | Next » 

Revision 4348b52e

Added by Leszek Koltunski almost 8 years ago

Fix the 'Moving Effects' app

View differences:

src/main/java/org/distorted/examples/movingeffects/MovingEffectsSurfaceView.java
49 49
    public static final int EFFECT_BUBBLE=1;
50 50
    public static final int EFFECT_SINK  =2;
51 51
    public static final int EFFECT_TRANS =3;
52
    public static final int EFFECT_MACRO =4;
52
    public static final int EFFECT_CHROMA=4;
53 53
    public static final int EFFECT_SWIRL =5;
54 54
   
55 55
    private static MovingEffectsRenderer mRenderer;
......
147 147

  
148 148
///////////////////////////////////////////////////////////////////////////////////////////////////
149 149

  
150
    public static void Macroblock()
150
    public static void Chroma()
151 151
      {
152
      if( mCurrEffect==EFFECT_MACRO ) return;   
152
      if( mCurrEffect==EFFECT_CHROMA ) return;
153 153
         
154 154
      synchronized(lock)
155 155
        {
156 156
        MovingEffectsRenderer.mBackground.abortEffects(EffectTypes.VERTEX);
157 157
        MovingEffectsRenderer.mBackground.abortEffects(EffectTypes.FRAGMENT);
158
        MovingEffectsRenderer.mBackground.macroblock(new Static1D(3), mRegion);
159
        mCurrEffect = EFFECT_MACRO;
158
        MovingEffectsRenderer.mBackground.chroma(new Static1D(0.5f), new Static3D(1,0,0), mRegion, true);
159
        mCurrEffect = EFFECT_CHROMA;
160 160
        }
161 161
      }
162 162

  

Also available in: Unified diff