aboutsummaryrefslogtreecommitdiffstats
path: root/main.vs
diff options
context:
space:
mode:
Diffstat (limited to 'main.vs')
-rw-r--r--main.vs14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.vs b/main.vs
new file mode 100644
index 0000000..066d6d8
--- /dev/null
+++ b/main.vs
@@ -0,0 +1,14 @@
+#version 330 core
+layout (location = 0) in vec3 position;
+layout (location = 2) in vec2 tex_pos;
+
+out vec2 tex_coords;
+
+uniform mat4 model;
+uniform mat4 proj_view;
+
+void main()
+{
+ gl_Position = proj_view * model * vec4(position, 1.0f);
+ tex_coords = vec2(tex_pos.x, 1.0f - tex_pos.y);
+}