canvas/shader/fragment.sl
2020-02-07 14:57:09 +01:00

12 lines
233 B
Text

#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);
color = texture(image, TexCoords);
}