mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 12:08:20 +00:00
19 lines
304 B
GLSL
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;
|
|
}
|