mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
c85ffb90af
This reverts commit 3eab3f5eb7
.
19 lines
332 B
GLSL
19 lines
332 B
GLSL
#ifdef TW_TEXTURED
|
|
#ifdef TW_3D_TEXTURED
|
|
uniform sampler3D gTextureSampler;
|
|
#else
|
|
uniform sampler2DArray gTextureSampler;
|
|
#endif
|
|
#endif
|
|
|
|
void main()
|
|
{
|
|
#ifdef TW_TEXTURED
|
|
vec4 TexColor = texture(gTextureSampler, gl_TexCoord[0].xyz).rgba;
|
|
gl_FragColor = TexColor.rgba * gl_Color.rgba;
|
|
#else
|
|
gl_FragColor = gl_Color.rgba;
|
|
#endif
|
|
}
|
|
|