summaryrefslogtreecommitdiff
path: root/txtgameengine/builtin_res/shaders/font/vertex.glsl
diff options
context:
space:
mode:
authorrom <romangraef@gmail.com>2021-04-24 03:19:22 +0200
committerrom <romangraef@gmail.com>2021-04-24 11:08:22 +0200
commitec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe (patch)
tree21e44e889c91eeecc1537e69eae7d0b50d25804a /txtgameengine/builtin_res/shaders/font/vertex.glsl
parenta0a40e9259b9e8be4e677c8c29dfdfb89eb81ce8 (diff)
downloadtxtgameengine-ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe.tar.gz
txtgameengine-ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe.tar.bz2
txtgameengine-ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe.zip
font rendering
Diffstat (limited to 'txtgameengine/builtin_res/shaders/font/vertex.glsl')
-rw-r--r--txtgameengine/builtin_res/shaders/font/vertex.glsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/txtgameengine/builtin_res/shaders/font/vertex.glsl b/txtgameengine/builtin_res/shaders/font/vertex.glsl
new file mode 100644
index 0000000..dd93afb
--- /dev/null
+++ b/txtgameengine/builtin_res/shaders/font/vertex.glsl
@@ -0,0 +1,12 @@
+#version 330 core
+
+layout(location=0) in vec3 vertexPosition_modelspace;
+layout(location=1) in vec2 vertexUV;
+
+out vec2 UV;
+
+void main() {
+ gl_Position = vec4(vertexPosition_modelspace, 1);
+ UV = vertexUV;
+}
+