summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/materialInterface.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/materialInterface.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/materialInterface.glsl')
-rw-r--r--gfx/gl/shaders/materialInterface.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/gl/shaders/materialInterface.glsl b/gfx/gl/shaders/materialInterface.glsl
index 3e09c85..5735cf9 100644
--- a/gfx/gl/shaders/materialInterface.glsl
+++ b/gfx/gl/shaders/materialInterface.glsl
@@ -2,3 +2,6 @@ ifelse(TYPE, .fs, in, out) vec3 FragPos;
ifelse(TYPE, .fs, in, out) vec2 TexCoords;
ifelse(TYPE, .fs, in, out) vec3 Normal;
ifelse(TYPE, .fs, in, out) vec4 Colour;
+flat
+ifelse(TYPE, .fs, in, out)
+uint Material;