ddnet/data/shader/spritemulti.frag
2020-08-19 08:42:09 +02:00

14 lines
255 B
GLSL

uniform sampler2D textureSampler;
uniform vec4 VerticesColor;
noperspective in vec2 texCoord;
noperspective in vec4 vertColor;
out vec4 FragClr;
void main()
{
vec4 tex = texture(textureSampler, texCoord);
FragClr = tex * vertColor * VerticesColor;
}