From fbe408c777dcf6ea5d2d784b739287d6db2bf52c Mon Sep 17 00:00:00 2001 From: FalsePattern Date: Tue, 28 Nov 2023 09:41:56 +0100 Subject: abstraction layer for attribute index/stride/offset --- src/main/resources/shaders/chunk.vert | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/resources/shaders') diff --git a/src/main/resources/shaders/chunk.vert b/src/main/resources/shaders/chunk.vert index 3e12f99..67ce114 100644 --- a/src/main/resources/shaders/chunk.vert +++ b/src/main/resources/shaders/chunk.vert @@ -1,8 +1,8 @@ #version 330 core -layout (location = 0) in vec3 aPos; -layout (location = 1) in vec2 aTexCoord; -layout (location = 2) in vec2 aBTexCoord; -layout (location = 3) in vec4 aColor; +layout (location = ATTRIB_POS) in vec3 aPos; +layout (location = ATTRIB_TEXTURE) in vec2 aTexCoord; +layout (location = ATTRIB_BRIGHTNESS) in vec2 aBTexCoord; +layout (location = ATTRIB_COLOR) in vec4 aColor; uniform mat4 modelView; uniform mat4 proj; -- cgit