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