diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-07-20 19:13:51 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-10 18:06:31 +0100 |
commit | 2e801758ffd0022bbc7e4cf75651b1142a8cd414 (patch) | |
tree | 90594a01a27e6362cdeeb18f821327610c5205cf /gfx/gl | |
parent | Apply StdTypeDefs for Texture (diff) | |
download | ilt-2e801758ffd0022bbc7e4cf75651b1142a8cd414.tar.bz2 ilt-2e801758ffd0022bbc7e4cf75651b1142a8cd414.tar.xz ilt-2e801758ffd0022bbc7e4cf75651b1142a8cd414.zip |
Simplify in/out in materialInterface
Diffstat (limited to 'gfx/gl')
-rw-r--r-- | gfx/gl/shaders/materialInterface.glsl | 14 |
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; |