summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/meshIn.glsl
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-13 02:15:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-13 02:15:41 +0100
commitf16a7df6135262c91fee2a2f6c46ad2f3caa7157 (patch)
tree29b5c52e1609d8df8a89a70f98503ae51fccf4e0 /gfx/gl/shaders/meshIn.glsl
parentAdd material field to vertex and configure it in mesh (diff)
downloadilt-f16a7df6135262c91fee2a2f6c46ad2f3caa7157.tar.bz2
ilt-f16a7df6135262c91fee2a2f6c46ad2f3caa7157.tar.xz
ilt-f16a7df6135262c91fee2a2f6c46ad2f3caa7157.zip
Update shaders to use material to conditionally lookup sub-texture in the atlas
Diffstat (limited to 'gfx/gl/shaders/meshIn.glsl')
-rw-r--r--gfx/gl/shaders/meshIn.glsl1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/gl/shaders/meshIn.glsl b/gfx/gl/shaders/meshIn.glsl
index 2b244c1..dd84a10 100644
--- a/gfx/gl/shaders/meshIn.glsl
+++ b/gfx/gl/shaders/meshIn.glsl
@@ -2,3 +2,4 @@ layout(location = 0) in vec3 position;
layout(location = 1) in vec2 texCoord;
layout(location = 2) in vec3 normal;
layout(location = 3) in vec4 colour;
+layout(location = 4) in uint material;