mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-15 04:28:20 +00:00
c85ffb90af
This reverts commit 3eab3f5eb7
.
23 lines
457 B
GLSL
23 lines
457 B
GLSL
#ifdef TW_QUAD_TEXTURED
|
|
uniform sampler2D gTextureSampler;
|
|
#endif
|
|
|
|
uniform vec4 gVertColors[TW_MAX_QUADS];
|
|
|
|
noperspective in vec4 QuadColor;
|
|
flat in int QuadIndex;
|
|
#ifdef TW_QUAD_TEXTURED
|
|
noperspective in vec2 TexCoord;
|
|
#endif
|
|
|
|
out vec4 FragClr;
|
|
void main()
|
|
{
|
|
#ifdef TW_QUAD_TEXTURED
|
|
vec4 TexColor = texture(gTextureSampler, TexCoord);
|
|
FragClr = TexColor * QuadColor * gVertColors[QuadIndex];
|
|
#else
|
|
FragClr = QuadColor * gVertColors[QuadIndex];
|
|
#endif
|
|
}
|