12 lines
266 B
Text
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));
|
|
}
|