Revision 94f6d472
Added by Leszek Koltunski about 7 years ago
src/main/res/raw/test_fragment_shader.glsl | ||
---|---|---|
19 | 19 |
|
20 | 20 |
precision lowp float; |
21 | 21 |
|
22 |
#if __VERSION__ != 100 |
|
22 | 23 |
out vec4 fragColor; |
24 |
#endif |
|
23 | 25 |
|
24 | 26 |
////////////////////////////////////////////////////////////////////////////////////////////// |
25 | 27 |
|
26 | 28 |
void main() |
27 | 29 |
{ |
28 |
fragColor = vec4(1.0,0.0,0.0,0.2); |
|
30 |
#if __VERSION__ != 100 |
|
31 |
fragColor = |
|
32 |
#else |
|
33 |
gl_FragColor = |
|
34 |
#endif |
|
35 |
|
|
36 |
vec4(1.0,0.0,0.0,0.2); |
|
29 | 37 |
} |
Also available in: Unified diff
Make it more flexible; now it can run almost all apps on OpenGL 2.0 contexts; OpenGL 3.0 ( with GLSL 3.00) required for POSTPROCESSING.