2020-09-14 21:30:13 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
2020-09-14 21:30:13 +00:00
|
|
|
void main() {
|
2021-03-08 18:29:15 +00:00
|
|
|
float x;
|
2020-09-14 21:30:13 +00:00
|
|
|
switch (int(sqrt(2.0))) {
|
|
|
|
case 0:
|
2021-03-08 18:29:15 +00:00
|
|
|
x = 0.0;
|
2020-09-14 21:30:13 +00:00
|
|
|
case 1:
|
2021-03-08 18:29:15 +00:00
|
|
|
x = 1.0;
|
2020-09-14 21:30:13 +00:00
|
|
|
default:
|
2021-03-08 18:29:15 +00:00
|
|
|
x = 2.0;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|
2021-03-08 18:29:15 +00:00
|
|
|
sk_FragColor = vec4(x);
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|