Skybox
[opengl.git] / skyboxvert.glsl
diff --git a/skyboxvert.glsl b/skyboxvert.glsl
new file mode 100644 (file)
index 0000000..f1ba729
--- /dev/null
@@ -0,0 +1,12 @@
+#version 330
+
+in vec3 pos;
+out vec3 texCoords;
+
+uniform mat4 projection;
+uniform mat4 view;
+
+void main() {
+       texCoords = pos;
+       gl_Position = projection * view * vec4(pos, 1);
+}