summaryrefslogtreecommitdiff
path: root/in_practice/text_rendering/bounds.vert
diff options
context:
space:
mode:
authorpryazha <pryadeiniv@mail.ru>2025-08-16 10:11:00 +0500
committerpryazha <pryadeiniv@mail.ru>2025-08-16 10:11:00 +0500
commit1f93c3ef62af6c71217f06491ca2b859d4065740 (patch)
tree4f07192788df29446aa1ddb73a20839e4ddf9b3f /in_practice/text_rendering/bounds.vert
parent99337878eca2807436bcf11d36946b90db44a2d3 (diff)
in practice chapter
Diffstat (limited to 'in_practice/text_rendering/bounds.vert')
-rw-r--r--in_practice/text_rendering/bounds.vert12
1 files changed, 12 insertions, 0 deletions
diff --git a/in_practice/text_rendering/bounds.vert b/in_practice/text_rendering/bounds.vert
new file mode 100644
index 0000000..8c115a5
--- /dev/null
+++ b/in_practice/text_rendering/bounds.vert
@@ -0,0 +1,12 @@
+#version 330 core
+
+layout(location = 0) in vec4 vertex;
+
+uniform mat4 projection;
+
+void main()
+{
+ gl_Position = projection * vec4(vertex.xy, 0.0, 1.0);
+}
+
+