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/blur/BlurRenderer.java
29 29
import org.distorted.library.DistortedEffects;
30 30
import org.distorted.library.DistortedScreen;
31 31
import org.distorted.library.DistortedTexture;
32
import org.distorted.library.EffectNames;
32 33
import org.distorted.library.EffectTypes;
33 34
import org.distorted.library.MeshFlat;
34 35
import org.distorted.library.type.Dynamic1D;
......
142 143
      mScreen.detachAll();
143 144
      mScreen.attach(texture,mEffects,mMesh);
144 145

  
146
      DistortedEffects.enableEffect(EffectNames.BLUR);
147

  
145 148
      try
146 149
        {
147 150
        Distorted.onCreate(mView.getContext());

Also available in: Unified diff