mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
20 lines
356 B
GLSL
20 lines
356 B
GLSL
#ifdef TW_TEXTURED
|
|
uniform sampler2D gTextureSampler;
|
|
#endif
|
|
|
|
uniform vec4 gVerticesColor;
|
|
|
|
noperspective in vec2 texCoord;
|
|
noperspective in vec4 vertColor;
|
|
|
|
out vec4 FragClr;
|
|
void main()
|
|
{
|
|
#ifdef TW_TEXTURED
|
|
vec4 tex = texture(gTextureSampler, texCoord);
|
|
FragClr = tex * vertColor * gVerticesColor;
|
|
#else
|
|
FragClr = vertColor * gVerticesColor;
|
|
#endif
|
|
}
|