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/projection/ProjectionRenderer.java
25 25
import org.distorted.library.Distorted;
26 26
import org.distorted.library.DistortedEffects;
27 27
import org.distorted.library.DistortedScreen;
28
import org.distorted.library.EffectNames;
28 29
import org.distorted.library.MeshFlat;
29 30
import org.distorted.library.DistortedTexture;
30 31
import org.distorted.library.type.Static3D;
......
131 132
      {
132 133
      GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
133 134

  
135
      DistortedEffects.enableEffect(EffectNames.DISTORT);
136

  
134 137
      try
135 138
        {
136 139
        Distorted.onCreate(mView.getContext());

Also available in: Unified diff