canvas/shader/fragment.sl
2020-02-08 00:15:53 +01:00

12 lines
266 B
Text

#version 330 core
in vec2 TexCoords;
out vec4 color;
uniform sampler2D image;
//uniform vec3 spriteColor;
void main()
{
//color = vec4(0.0, 0.0, 0.0, 1.0) * texture2D(image, TexCoords);
color = texture2D(image, vec2(TexCoords.x, 1.0 - TexCoords.y));
}