2020-09-15 14:10:43 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
|
|
|
uniform vec4 color;
|
2021-03-15 22:08:38 +00:00
|
|
|
void main() {
|
|
|
|
vec4 _0_result;
|
|
|
|
switch (int(color.x)) {
|
2020-12-15 20:21:03 +00:00
|
|
|
case 1:
|
2021-03-15 22:08:38 +00:00
|
|
|
_0_result = color.yyyy;
|
2020-12-15 20:21:03 +00:00
|
|
|
break;
|
|
|
|
default:
|
2021-03-15 22:08:38 +00:00
|
|
|
_0_result = color.zzzz;
|
2020-12-15 20:21:03 +00:00
|
|
|
break;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-15 22:08:38 +00:00
|
|
|
sk_FragColor = _0_result;
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|