diff options
Diffstat (limited to 'text_rendering/glyph.vert')
-rw-r--r-- | text_rendering/glyph.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/text_rendering/glyph.vert b/text_rendering/glyph.vert new file mode 100644 index 0000000..ebee1b5 --- /dev/null +++ b/text_rendering/glyph.vert @@ -0,0 +1,18 @@ +#version 330 core + +/* combine position and texture coordinates into vec4 */ +layout(location = 0) in vec4 vertex; + +out vert_t { + vec2 tex_coords; +} vert; + +uniform mat4 projection; + +void main() +{ + gl_Position = projection * vec4(vertex.xy, 0.0, 1.0); + vert.tex_coords = vertex.zw; +} + + |