mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
c85ffb90af
This reverts commit 3eab3f5eb7
.
25 lines
422 B
GLSL
25 lines
422 B
GLSL
#ifdef TW_TILE_TEXTURED
|
|
#ifdef TW_TILE_3D_TEXTURED
|
|
uniform sampler3D gTextureSampler;
|
|
#else
|
|
uniform sampler2DArray gTextureSampler;
|
|
#endif
|
|
#endif
|
|
|
|
uniform vec4 gVertColor;
|
|
|
|
#ifdef TW_TILE_TEXTURED
|
|
noperspective in vec3 TexCoord;
|
|
#endif
|
|
|
|
out vec4 FragClr;
|
|
void main()
|
|
{
|
|
#ifdef TW_TILE_TEXTURED
|
|
vec4 TexColor = texture(gTextureSampler, TexCoord.xyz);
|
|
FragClr = TexColor * gVertColor;
|
|
#else
|
|
FragClr = gVertColor;
|
|
#endif
|
|
}
|