projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Skybox
[opengl.git]
/
skyboxvert.glsl
diff --git a/skyboxvert.glsl
b/skyboxvert.glsl
new file mode 100644
(file)
index 0000000..
f1ba729
--- /dev/null
+++ b/
skyboxvert.glsl
@@ -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);
+}