aboutsummaryrefslogtreecommitdiff
path: root/shaders/skybox.vert
diff options
context:
space:
mode:
authorpapush!2021-01-02 17:45:42 +0100
committerpapush!2021-01-02 17:45:42 +0100
commit8ad1cf1b89b8acae55e36d6bd4562dffd1bcc714 (patch)
tree02c4a50e19670489a63cd80f1ca1040a2f2cb0ab /shaders/skybox.vert
parentdafdc38f1631f43d94803b0711657187ab58dedd (diff)
target openglES 2 (with vao ext)
Diffstat (limited to 'shaders/skybox.vert')
-rw-r--r--shaders/skybox.vert20
1 files changed, 3 insertions, 17 deletions
diff --git a/shaders/skybox.vert b/shaders/skybox.vert
index ac4ac5e..2ab8497 100644
--- a/shaders/skybox.vert
+++ b/shaders/skybox.vert
@@ -1,22 +1,8 @@
-#version 330 core
+#version 120
-// layout(location = 0) in vec3 in_pos;
+attribute vec3 in_pos;
-// out vec3 tex_coords;
-
-// uniform mat4 proj;
-// uniform mat4 view;
-
-// void main() {
-// // vec4 pos = proj * view * vec4(in_pos, 1.0);
-// // gl_Position = pos.xyww;
-// gl_Position = proj * vec4(in_pos, 1.0);
-// tex_coords = in_pos;
-// }
-
-layout(location = 0) in vec3 in_pos;
-
-out vec3 tex_coords;
+varying vec3 tex_coords;
uniform mat4 proj;
uniform mat4 view;