Project

General

Profile

« Previous | Next » 

Revision 6637d0f2

Added by Leszek Koltunski about 7 years ago

Speed up shaders (both compilation and execution) by explicitly enabling only the needed effects.

View differences:

src/main/java/org/distorted/examples/flag/FlagRenderer.java
28 28
import org.distorted.library.Distorted;
29 29
import org.distorted.library.DistortedEffects;
30 30
import org.distorted.library.DistortedScreen;
31
import org.distorted.library.EffectNames;
31 32
import org.distorted.library.MeshCubes;
32 33
import org.distorted.library.DistortedTexture;
33 34
import org.distorted.library.EffectTypes;
......
196 197
        }  
197 198
      
198 199
      mTexture.setTexture(bitmap);
199
      
200

  
201
      DistortedEffects.enableEffect(EffectNames.WAVE);
202

  
200 203
      try
201 204
        {
202 205
        Distorted.onCreate(mView.getContext());

Also available in: Unified diff