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-12-15 20:21:03 +00:00
|
|
|
vec4 _1_result;
|
|
|
|
switch (int(color.x)) {
|
|
|
|
case 1:
|
|
|
|
_1_result = color.yyyy;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
_1_result = color.zzzz;
|
|
|
|
break;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2020-12-17 19:38:56 +00:00
|
|
|
sk_FragColor = _1_result;
|
2020-09-15 14:10:43 +00:00
|
|
|
|
|
|
|
}
|