Project

General

Profile

« Previous | Next » 

Revision c25273e0

Added by Leszek Koltunski almost 6 years ago

Standarize GLSL version across the whole library.

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffectBlur.java
21 21

  
22 22
import android.opengl.GLES31;
23 23

  
24
import org.distorted.library.main.Distorted;
24 25
import org.distorted.library.main.DistortedFramebuffer;
25 26
import org.distorted.library.main.DistortedOutputSurface;
26 27
import org.distorted.library.main.DistortedRenderState;
......
233 234
    {
234 235
    final String blurVertex =
235 236

  
236
      "#version 300 es        \n"+
237
        Distorted.GLSL_VERSION   +
237 238
      "precision lowp float;  \n"+
238 239
      "in vec2 a_Position;    \n"+
239 240
      "in vec2 a_TexCoord;    \n"+
......
249 250

  
250 251
    final String blurFragment1 =
251 252

  
252
      "#version 300 es                    \n"+
253
        Distorted.GLSL_VERSION               +
253 254
      "#define MAX_BLUR "+MAX_HALO+      "\n"+
254 255
      "precision lowp float;              \n"+
255 256
      "in vec2 v_TexCoord;                \n"+
......
272 273

  
273 274
    final String blurFragment2 =
274 275

  
275
      "#version 300 es                    \n"+
276
        Distorted.GLSL_VERSION               +
276 277
      "#define MAX_BLUR "+MAX_HALO+      "\n"+
277 278
      "precision lowp float;              \n"+
278 279
      "in vec2 v_TexCoord;                \n"+

Also available in: Unified diff