2021-05-24 14:52:23 +00:00
|
|
|
uniform float unknownInput;
|
|
|
|
|
2020-09-14 21:30:13 +00:00
|
|
|
void main() {
|
2021-05-24 14:52:23 +00:00
|
|
|
half value = 0.0;
|
|
|
|
switch (int(unknownInput)) {
|
2020-09-14 21:30:13 +00:00
|
|
|
case 0:
|
2021-05-24 14:52:23 +00:00
|
|
|
value = 0.0;
|
2020-09-14 21:30:13 +00:00
|
|
|
case 1:
|
2021-05-24 14:52:23 +00:00
|
|
|
value = 1.0;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|
2021-05-24 14:52:23 +00:00
|
|
|
sk_FragColor = value.xxxx;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|