• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 400
2out vec4 sk_FragColor;
3uniform vec4 colorGreen;
4uniform vec4 colorRed;
5bool switch_fallthrough_twice_bi(int value) {
6    bool ok = false;
7    int _tmpSwitchValue1 = value, _tmpSwitchFallthrough0 = 0;
8    for (int _tmpSwitchLoop2 = 0; _tmpSwitchLoop2 < 1; _tmpSwitchLoop2++) {
9        if ((_tmpSwitchValue1 == 0)) {
10            break;
11            _tmpSwitchFallthrough0 = 1;
12        }
13        if ((_tmpSwitchFallthrough0 > 0) || (_tmpSwitchValue1 == 1)) {
14            {
15            }
16            _tmpSwitchFallthrough0 = 1;
17        }
18        if ((_tmpSwitchFallthrough0 > 0) || (_tmpSwitchValue1 == 2)) {
19            {
20            }
21            _tmpSwitchFallthrough0 = 1;
22        }
23        if ((_tmpSwitchFallthrough0 > 0) || (_tmpSwitchValue1 == 3)) {
24            ok = true;
25            break;
26            _tmpSwitchFallthrough0 = 1;
27        }
28        break;
29    }
30    return ok;
31}
32vec4 main() {
33    int x = int(colorGreen.y);
34    bool _0_ok = false;
35    int _tmpSwitchValue4 = x, _tmpSwitchFallthrough3 = 0;
36    for (int _tmpSwitchLoop5 = 0; _tmpSwitchLoop5 < 1; _tmpSwitchLoop5++) {
37        if ((_tmpSwitchValue4 == 2)) {
38            break;
39            _tmpSwitchFallthrough3 = 1;
40        }
41        if ((_tmpSwitchFallthrough3 > 0) || (_tmpSwitchValue4 == 1)) {
42            {
43            }
44            _tmpSwitchFallthrough3 = 1;
45        }
46        if ((_tmpSwitchFallthrough3 > 0) || (_tmpSwitchValue4 == 0)) {
47            _0_ok = true;
48            break;
49            _tmpSwitchFallthrough3 = 1;
50        }
51        break;
52    }
53    return _0_ok && switch_fallthrough_twice_bi(x) ? colorGreen : colorRed;
54}
55