blob: c4438b7c86589cb1c88287fea7b3a1e085f10290 [file] [log] [blame]
John Kessenich33f85b62017-03-06 08:51:35 -07001#version 400
2
3layout(push_constant) uniform Material {
4 int kind;
5 float fa[3];
6};
7
8out vec4 color;
9
10void main()
11{
12 switch (kind) {
13 case 1: color = vec4(0.2); break;
14 case 2: color = vec4(0.5); break;
15 default: color = vec4(fa[1]); break;
16 }
17}