mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-21 10:48:14 +00:00
18 lines
285 B
GLSL
18 lines
285 B
GLSL
#version 400
|
|
|
|
layout(push_constant) uniform Material {
|
|
int kind;
|
|
float fa[3];
|
|
};
|
|
|
|
out vec4 color;
|
|
|
|
void main()
|
|
{
|
|
switch (kind) {
|
|
case 1: color = vec4(0.2); break;
|
|
case 2: color = vec4(0.5); break;
|
|
default: color = vec4(fa[1]); break;
|
|
}
|
|
}
|