From ef9c8fe1966fa861758c72f1990751d330dc9b35 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 12 Aug 2021 20:26:21 -0400 Subject: graphics: pbr: Move attributes around to support auto-generated meshes. --- data/shaders/pbr-vert.glsl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'data') diff --git a/data/shaders/pbr-vert.glsl b/data/shaders/pbr-vert.glsl index adbcdc5..76989a4 100644 --- a/data/shaders/pbr-vert.glsl +++ b/data/shaders/pbr-vert.glsl @@ -2,26 +2,26 @@ #ifdef GLSL330 layout (location = 0) in vec3 position; -layout (location = 1) in vec3 normal; -layout (location = 2) in vec3 tangent; -layout (location = 3) in vec2 texcoord0; +layout (location = 1) in vec2 texcoord0; +layout (location = 2) in vec3 normal; +layout (location = 3) in vec3 tangent; layout (location = 4) in vec2 texcoord1; layout (location = 5) in vec4 color0; layout (location = 6) in vec4 joint; layout (location = 7) in vec4 weight; #elif defined(GLSL130) in vec3 position; +in vec2 texcoord0; in vec3 normal; in vec3 tangent; -in vec2 texcoord0; in vec2 texcoord1; in vec4 color0; in vec4 joint; #elif defined(GLSL120) attribute vec3 position; +attribute vec2 texcoord0; attribute vec3 normal; attribute vec3 tangent; -attribute vec2 texcoord0; attribute vec2 texcoord1; attribute vec4 color0; attribute vec4 weight; -- cgit v1.2.3