You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
228 B
GLSL

uniform sampler2D sampler;
uniform vec4 u_color;
varying vec2 varyingTexCoords;
void main()
{
vec4 tex = texture2D(sampler, varyingTexCoords);
if (tex.a != 1.0) {
tex = u_color;
}
gl_FragColor = tex;
}