hexnando/shaders/text.vert

13 lines
272 B
GLSL

#version 330 core
layout (location = 0) in vec2 vertex; // <vec2 pos>
out vec2 texuv;
uniform mat4 transform;
uniform mat4 projection;
void main()
{
gl_Position = projection * transform * vec4(vertex.xy, 0.0, 1.0);
texuv = vertex.xy;
texuv.y=1.0f-texuv.y;
}