2020-09-14 21:30:13 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
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
|
|
|
float value = 0.0;
|
2020-09-14 21:30:13 +00:00
|
|
|
switch (0) {
|
|
|
|
case 0:
|
2021-05-24 14:52:23 +00:00
|
|
|
value = 0.0;
|
|
|
|
if (unknownInput == 2.0) {
|
|
|
|
sk_FragColor = vec4(value);
|
2020-09-14 21:30:13 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 1:
|
2021-05-24 14:52:23 +00:00
|
|
|
value = 1.0;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|
|
|
|
}
|