2021-09-25 14:33:00 +00:00
|
|
|
#version 400
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
2021-09-21 14:56:31 +00:00
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
|
|
|
bool switch_fallthrough_twice_bi(int value) {
|
2021-09-21 18:30:14 +00:00
|
|
|
bool ok = false;
|
2021-09-25 14:33:00 +00:00
|
|
|
int _tmpSwitchValue1 = value, _tmpSwitchFallthrough0 = 0;
|
|
|
|
for (int _tmpSwitchLoop2 = 0; _tmpSwitchLoop2 < 1; _tmpSwitchLoop2++) {
|
|
|
|
if ((_tmpSwitchValue1 == 0)) {
|
2021-09-21 18:30:14 +00:00
|
|
|
break;
|
2021-09-25 14:33:00 +00:00
|
|
|
_tmpSwitchFallthrough0 = 1;
|
|
|
|
}
|
|
|
|
if ((_tmpSwitchFallthrough0 > 0) || (_tmpSwitchValue1 == 1)) {
|
|
|
|
{
|
|
|
|
}
|
|
|
|
_tmpSwitchFallthrough0 = 1;
|
|
|
|
}
|
|
|
|
if ((_tmpSwitchFallthrough0 > 0) || (_tmpSwitchValue1 == 2)) {
|
|
|
|
{
|
|
|
|
}
|
|
|
|
_tmpSwitchFallthrough0 = 1;
|
|
|
|
}
|
|
|
|
if ((_tmpSwitchFallthrough0 > 0) || (_tmpSwitchValue1 == 3)) {
|
2021-09-21 18:30:14 +00:00
|
|
|
ok = true;
|
|
|
|
break;
|
2021-09-25 14:33:00 +00:00
|
|
|
_tmpSwitchFallthrough0 = 1;
|
|
|
|
}
|
|
|
|
break;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|
2021-09-21 18:30:14 +00:00
|
|
|
return ok;
|
2021-09-21 14:56:31 +00:00
|
|
|
}
|
|
|
|
vec4 main() {
|
|
|
|
int x = int(colorGreen.y);
|
2021-09-21 18:30:14 +00:00
|
|
|
bool _0_ok = false;
|
2021-09-25 14:33:00 +00:00
|
|
|
int _tmpSwitchValue4 = x, _tmpSwitchFallthrough3 = 0;
|
|
|
|
for (int _tmpSwitchLoop5 = 0; _tmpSwitchLoop5 < 1; _tmpSwitchLoop5++) {
|
|
|
|
if ((_tmpSwitchValue4 == 2)) {
|
2021-09-21 18:30:14 +00:00
|
|
|
break;
|
2021-09-25 14:33:00 +00:00
|
|
|
_tmpSwitchFallthrough3 = 1;
|
|
|
|
}
|
|
|
|
if ((_tmpSwitchFallthrough3 > 0) || (_tmpSwitchValue4 == 1)) {
|
|
|
|
{
|
|
|
|
}
|
|
|
|
_tmpSwitchFallthrough3 = 1;
|
|
|
|
}
|
|
|
|
if ((_tmpSwitchFallthrough3 > 0) || (_tmpSwitchValue4 == 0)) {
|
2021-09-21 18:30:14 +00:00
|
|
|
_0_ok = true;
|
|
|
|
break;
|
2021-09-25 14:33:00 +00:00
|
|
|
_tmpSwitchFallthrough3 = 1;
|
|
|
|
}
|
|
|
|
break;
|
2021-09-21 18:30:14 +00:00
|
|
|
}
|
|
|
|
return _0_ok && switch_fallthrough_twice_bi(x) ? colorGreen : colorRed;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|