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