OSDN Git Service

[DRAW][OPenGL] Integrate shaders beyond GL version, excepts GL2.x.
[csp-qt/common_source_project-fm7.git] / source / src / qt / gui / gles2 / led_fragment_shader.glsl
1 #ifdef HAS_FLOAT_TEXTURE
2 #ifdef HAS_HALF_FLOAT_TEXTURE
3 #extension GL_OES_texture_half_float : enable
4 #else
5 #extension GL_OES_texture_float : enable
6 #endif
7 #endif
8 #ifdef HAS_FRAGMENT_HIGH_PRECISION
9 #extension GL_OES_fragment_precision_high : enable
10 precision  highp float;
11 #else
12 precision  mediump float;
13 #endif
14 #if __VERSION__ >= 300
15 out mediump vec4 opixel;
16 #endif
17 uniform vec4 color;
18 void main ()
19 {
20 #if __VERSION__ >= 300
21         opixel = color;
22 #else
23         gl_FragColor = color;
24 #endif
25
26 }
27
28