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