From 8ad1cf1b89b8acae55e36d6bd4562dffd1bcc714 Mon Sep 17 00:00:00 2001 From: papush! Date: Sat, 2 Jan 2021 17:45:42 +0100 Subject: target openglES 2 (with vao ext) --- shaders/main.vert | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'shaders/main.vert') 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; -- cgit v1.2.3-70-g09d2