canvas/shader/fragment.sl

13 lines
266 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;
2020-02-07 13:57:09 +00:00
//uniform vec3 spriteColor;
2020-02-06 04:09:16 +00:00
void main()
{
2020-02-07 23:15:53 +00:00
//color = vec4(0.0, 0.0, 0.0, 1.0) * texture2D(image, TexCoords);
color = texture2D(image, vec2(TexCoords.x, 1.0 - TexCoords.y));
2020-02-06 04:09:16 +00:00
}