ddnet/data/shader/prim.frag
def 3eab3f5eb7 Revert Jupeyy's OpenGL changes
Emergency-revert for 14.5.1 release, too many problems
2020-08-26 20:03:22 +02:00

19 lines
304 B
GLSL

#version 330
uniform int isTextured;
uniform sampler2D textureSampler;
noperspective in vec2 texCoord;
noperspective in vec4 vertColor;
out vec4 FragClr;
void main()
{
if(isTextured == 1)
{
vec4 tex = texture(textureSampler, texCoord);
FragClr = tex * vertColor;
}
else FragClr = vertColor;
}