Revision 1cbf4103
Added by Leszek Koltunski about 7 years ago
src/main/res/raw/blur1_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; |
... | ... | |
45 | 47 |
TEXTURE(u_ColorTexture,vec2(v_TexCoordinate.x-u_Offsets[i],v_TexCoordinate.y)) ) * u_Weights[i]; |
46 | 48 |
} |
47 | 49 |
|
48 |
#if __VERSION__ != 100 |
|
49 |
fragColor = |
|
50 |
#else |
|
51 |
gl_FragColor = |
|
52 |
#endif |
|
53 |
|
|
54 |
pixel; |
|
50 |
FRAG_COLOR = pixel; |
|
55 | 51 |
} |
Also available in: Unified diff
Simplify shaders.