aboutsummaryrefslogtreecommitdiff
path: root/shaders/main.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/main.vert
parentdafdc38f1631f43d94803b0711657187ab58dedd (diff)
target openglES 2 (with vao ext)
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;