summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-07-20 19:13:51 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-08-10 18:06:31 +0100
commit2e801758ffd0022bbc7e4cf75651b1142a8cd414 (patch)
tree90594a01a27e6362cdeeb18f821327610c5205cf /gfx/gl/shaders
parentApply StdTypeDefs for Texture (diff)
downloadilt-2e801758ffd0022bbc7e4cf75651b1142a8cd414.tar.bz2
ilt-2e801758ffd0022bbc7e4cf75651b1142a8cd414.tar.xz
ilt-2e801758ffd0022bbc7e4cf75651b1142a8cd414.zip
Simplify in/out in materialInterface
Diffstat (limited to 'gfx/gl/shaders')
-rw-r--r--gfx/gl/shaders/materialInterface.glsl14
1 files changed, 7 insertions, 7 deletions
diff --git a/gfx/gl/shaders/materialInterface.glsl b/gfx/gl/shaders/materialInterface.glsl
index 3a4796b..5ec5066 100644
--- a/gfx/gl/shaders/materialInterface.glsl
+++ b/gfx/gl/shaders/materialInterface.glsl
@@ -4,10 +4,10 @@ struct MaterialDetail {
uvec2 mapmode;
};
-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)
-MaterialDetail Material;
+define(INOUT, ifelse(TYPE, .fs, in, out));
+
+INOUT vec3 FragPos;
+INOUT vec2 TexCoords;
+INOUT vec3 Normal;
+INOUT vec4 Colour;
+flat INOUT MaterialDetail Material;