Revision 1cbf4103
Added by Leszek Koltunski about 7 years ago
src/main/res/raw/test_fragment_shader.glsl | ||
---|---|---|
21 | 21 |
|
22 | 22 |
#if __VERSION__ != 100 |
23 | 23 |
out vec4 fragColor; |
24 |
#define FRAG_COLOR fragColor |
|
25 |
#else |
|
26 |
#define FRAG_COLOR gl_FragColor |
|
24 | 27 |
#endif |
25 | 28 |
|
26 | 29 |
////////////////////////////////////////////////////////////////////////////////////////////// |
27 | 30 |
|
28 | 31 |
void main() |
29 | 32 |
{ |
30 |
#if __VERSION__ != 100 |
|
31 |
fragColor = |
|
32 |
#else |
|
33 |
gl_FragColor = |
|
34 |
#endif |
|
35 |
|
|
36 |
vec4(1.0,0.0,0.0,0.2); |
|
33 |
FRAG_COLOR = vec4(1.0,0.0,0.0,0.2); |
|
37 | 34 |
} |
Also available in: Unified diff
Simplify shaders.