#ifdef GL_ES precision mediump float; #endif varying vec4 v_fragmentColor; varying vec2 v_texCoord; void main() { vec4 normalColor = v_fragmentColor * texture2D(CC_Texture0, v_texCoord); if(normalColor.a > 0.0) { normalColor.g = (1.0 - normalColor.g) * 0.8 + normalColor.r; normalColor.b = 1.0; normalColor.r = 0.0; } gl_FragColor = normalColor; }