From 99337878eca2807436bcf11d36946b90db44a2d3 Mon Sep 17 00:00:00 2001 From: pryazha Date: Mon, 4 Aug 2025 01:19:01 +0500 Subject: text rendering chapter --- text_rendering/glyph.vert | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 text_rendering/glyph.vert (limited to 'text_rendering/glyph.vert') 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; +} + + -- cgit v1.2.3-70-g09d2