some android devices can not compile this frag

This commit is contained in:
minggo 2012-12-05 17:15:47 +08:00
parent c620b0f5bf
commit d858ce2fe2
1 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@
" \n\
#ifdef GL_ES \n\
#extension GL_OES_standard_derivatives : enable \n\
// #extension GL_OES_standard_derivatives : enable \n\
\n\
varying mediump vec4 v_color; \n\
varying mediump vec2 v_texcoord; \n\
@ -32,10 +32,10 @@ varying vec2 v_texcoord; \n\
\n\
void main() \n\
{ \n\
#if defined GL_OES_standard_derivatives \n\
gl_FragColor = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n\
#else \n\
// #if defined GL_OES_standard_derivatives \n\
// gl_FragColor = v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n\
// #else \n\
gl_FragColor = v_color*step(0.0, 1.0 - length(v_texcoord)); \n\
#endif \n\
// #endif \n\
} \n\
";