summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/materialInterface.glsl
blob: 5ec506658f9a512f4dc783926c1bf9e2029ffec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct MaterialDetail {
	vec2 textureOrigin;
	vec2 textureSize;
	uvec2 mapmode;
};

define(INOUT, ifelse(TYPE, .fs, in, out));

INOUT vec3 FragPos;
INOUT vec2 TexCoords;
INOUT vec3 Normal;
INOUT vec4 Colour;
flat INOUT MaterialDetail Material;