Revision 1cbf4103
Added by Leszek Koltunski about 7 years ago
src/main/res/raw/blit_fragment_shader.glsl | ||
---|---|---|
20 | 20 |
precision lowp float; |
21 | 21 |
|
22 | 22 |
#if __VERSION__ != 100 |
23 |
#define TEXTURE texture |
|
24 | 23 |
out vec4 fragColor; // The output color |
25 | 24 |
in vec2 v_TexCoordinate; // Interpolated texture coordinate per fragment. |
25 |
#define TEXTURE texture |
|
26 |
#define FRAG_COLOR fragColor |
|
26 | 27 |
#else |
27 |
#define TEXTURE texture2D |
|
28 | 28 |
varying vec2 v_TexCoordinate; // Interpolated texture coordinate per fragment. |
29 |
#define TEXTURE texture2D |
|
30 |
#define FRAG_COLOR gl_FragColor |
|
29 | 31 |
#endif |
30 | 32 |
|
31 | 33 |
uniform sampler2D u_Texture; // The input texture. |
... | ... | |
34 | 36 |
|
35 | 37 |
void main() |
36 | 38 |
{ |
37 |
#if __VERSION__ != 100 |
|
38 |
fragColor = |
|
39 |
#else |
|
40 |
gl_FragColor = |
|
41 |
#endif |
|
42 |
|
|
43 |
TEXTURE(u_Texture,v_TexCoordinate); |
|
39 |
FRAG_COLOR = TEXTURE(u_Texture,v_TexCoordinate); |
|
44 | 40 |
} |
Also available in: Unified diff
Simplify shaders.