diff options
author | papush! | 2021-01-02 17:45:42 +0100 |
---|---|---|
committer | papush! | 2021-01-02 17:45:42 +0100 |
commit | 8ad1cf1b89b8acae55e36d6bd4562dffd1bcc714 (patch) | |
tree | 02c4a50e19670489a63cd80f1ca1040a2f2cb0ab /shaders/main.vert | |
parent | dafdc38f1631f43d94803b0711657187ab58dedd (diff) |
target openglES 2 (with vao ext)
Diffstat (limited to 'shaders/main.vert')
-rw-r--r-- | shaders/main.vert | 14 |
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; |