2020-09-15 14:10:43 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
|
|
|
uniform vec4 color;
|
2020-09-15 14:10:43 +00:00
|
|
|
void main() {
|
2020-09-15 20:09:11 +00:00
|
|
|
vec4 _0_switchy;
|
2020-09-15 14:10:43 +00:00
|
|
|
{
|
2020-09-15 20:09:11 +00:00
|
|
|
vec4 _1_result;
|
2020-09-15 14:10:43 +00:00
|
|
|
switch (int(color.x)) {
|
|
|
|
case 1:
|
|
|
|
_1_result = color.yyyy;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
_1_result = color.zzzz;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_0_switchy = _1_result;
|
|
|
|
}
|
2020-10-13 15:19:41 +00:00
|
|
|
|
2020-09-15 14:10:43 +00:00
|
|
|
sk_FragColor = _0_switchy;
|
|
|
|
|
|
|
|
}
|