ddnet/data/shader/prim.frag

16 lines
266 B
GLSL
Raw Normal View History

uniform sampler2D gTextureSampler;
noperspective in vec2 texCoord;
noperspective in vec4 vertColor;
2017-09-13 16:49:43 +00:00
out vec4 FragClr;
void main()
{
#ifdef TW_TEXTURED
vec4 tex = texture(gTextureSampler, texCoord);
FragClr = tex * vertColor;
#else
FragClr = vertColor;
#endif
}