1 2 3 4 5 6 7 8 9 10 11 12 13 14
SHADER_SOURCE(gDrawTextureFragmentShader, precision mediump float; varying vec2 outTexCoords; uniform vec4 color; uniform sampler2D sampler; void main(void) { gl_FragColor = texture2D(sampler, outTexCoords) * color; } );