summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/materialInterface.glsl
blob: 3a4796b942069d2d6d6aeca995ad464a5d172e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct MaterialDetail {
	vec2 textureOrigin;
	vec2 textureSize;
	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;