canvas/shader/fragment.sl

12 lines
190 B
Text
Raw Normal View History

2020-02-06 04:09:16 +00:00
#version 330 core
in vec2 TexCoords;
out vec4 color;
uniform sampler2D image;
uniform vec3 spriteColor;
void main()
{
color = vec4(spriteColor, 1.0) * texture(image, TexCoords);
}