1#version 400
2
3layout(push_constant) uniform Material {
4 int kind;
5 float fa[3];
6} matInst;
7
8out vec4 color;
9
10void main()
11{
12 switch (matInst.kind) {
13 case 1: color = vec4(0.2); break;
14 case 2: color = vec4(0.5); break;
15 default: color = vec4(0.0); break;
16 }
17}
18