aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/shaders
diff options
context:
space:
mode:
authorFalsePattern <me@falsepattern.com>2023-11-28 09:41:56 +0100
committermakamys <makamys@outlook.com>2023-12-01 18:34:00 +0100
commitfbe408c777dcf6ea5d2d784b739287d6db2bf52c (patch)
tree77e4023ef11829d36adf1095a5f20bc8845b32f6 /src/main/resources/shaders
parenta4ec946f5931f8fe6e6271b22c553f99b9d5afb8 (diff)
downloadNeodymium-fbe408c777dcf6ea5d2d784b739287d6db2bf52c.tar.gz
Neodymium-fbe408c777dcf6ea5d2d784b739287d6db2bf52c.tar.bz2
Neodymium-fbe408c777dcf6ea5d2d784b739287d6db2bf52c.zip
abstraction layer for attribute index/stride/offset
Diffstat (limited to 'src/main/resources/shaders')
-rw-r--r--src/main/resources/shaders/chunk.vert8
1 files changed, 4 insertions, 4 deletions
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;