mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
c85ffb90af
This reverts commit 3eab3f5eb7
.
17 lines
290 B
GLSL
17 lines
290 B
GLSL
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;
|
|
}
|