aboutsummaryrefslogtreecommitdiff
path: root/shaders/main.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/main.vert')
-rw-r--r--shaders/main.vert14
1 files changed, 6 insertions, 8 deletions
diff --git a/shaders/main.vert b/shaders/main.vert
index 33e6849..d05a0da 100644
--- a/shaders/main.vert
+++ b/shaders/main.vert
@@ -1,12 +1,10 @@
-#version 330 core
+attribute vec3 in_pos;
+attribute vec3 in_norm;
+attribute vec2 in_uv;
-layout(location = 0) in vec3 in_pos;
-layout(location = 1) in vec3 in_norm;
-layout(location = 2) in vec2 in_uv;
-
-out vec3 norm;
-out vec2 uv;
-out vec3 frag_pos;
+varying vec3 norm;
+varying vec2 uv;
+varying vec3 frag_pos;
uniform mat4 proj;
uniform mat4 view;