Frostbite2D/Game/shaders/sprite.frag

13 lines
230 B
GLSL

#ifdef GL_ES
precision mediump float;
#endif
varying vec2 v_texCoord;
varying vec4 v_color;
uniform sampler2D u_texture;
void main() {
vec4 texColor = texture2D(u_texture, v_texCoord);
gl_FragColor = texColor * v_color;
}