Project

General

Profile

« Previous | Next » 

Revision 1cbf4103

Added by Leszek Koltunski about 7 years ago

Simplify shaders.

View differences:

src/main/res/raw/blur2_fragment_shader.glsl
20 20
precision lowp float;
21 21

  
22 22
#if __VERSION__ != 100
23
#define TEXTURE texture
24 23
in vec2 v_TexCoordinate;
25 24
out vec4 fragColor;
25
#define TEXTURE texture
26
#define FRAG_COLOR fragColor
26 27
#else
27
#define TEXTURE texture2D
28 28
varying vec2 v_TexCoordinate;
29
#define TEXTURE texture2D
30
#define FRAG_COLOR gl_FragColor
29 31
#endif
30 32

  
31 33
uniform sampler2D u_ColorTexture;
......
48 50
               TEXTURE(u_ColorTexture,vec2(v_TexCoordinate.x-u_Offsets[i],v_TexCoordinate.y)) ) * u_Weights[i];
49 51
    }
50 52

  
51
#if __VERSION__ != 100
52
  fragColor    =
53
#else
54
  gl_FragColor =
55
#endif
56

  
57
  pixel;
53
  FRAG_COLOR = pixel;
58 54
  }

Also available in: Unified diff