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/sink/SinkRenderer.java
30 30
import org.distorted.library.Distorted;
31 31
import org.distorted.library.DistortedEffects;
32 32
import org.distorted.library.DistortedScreen;
33
import org.distorted.library.EffectNames;
33 34
import org.distorted.library.MeshFlat;
34 35
import org.distorted.library.DistortedTexture;
35 36
import org.distorted.library.EffectTypes;
......
133 134
    mScreen.detachAll();
134 135
    mScreen.attach(texture,mEffects,mesh);
135 136

  
137
    DistortedEffects.enableEffect(EffectNames.SINK);
138

  
136 139
    try
137 140
      {
138 141
      Distorted.onCreate(mView.getContext());

Also available in: Unified diff