mirror of https://github.com/axmolengine/axmol.git
15 lines
286 B
GLSL
15 lines
286 B
GLSL
#ifdef GL_ES
|
|
precision mediump float;
|
|
#endif
|
|
|
|
varying vec4 v_fragmentColor;
|
|
varying vec2 v_texCoord;
|
|
|
|
uniform sampler2D CC_Texture0;
|
|
|
|
void main(void)
|
|
{
|
|
vec4 c = texture2D(CC_Texture0, v_texCoord);
|
|
gl_FragColor.xyz = vec3(0.2126*c.r + 0.7152*c.g + 0.0722*c.b);
|
|
gl_FragColor.w = c.w;
|
|
} |