2020-09-14 21:30:13 +00:00
|
|
|
|
2021-01-27 00:58:22 +00:00
|
|
|
out vec4 sk_FragColor;
|
2021-01-26 21:28:12 +00:00
|
|
|
uniform vec4 colorRed;
|
|
|
|
uniform vec4 colorGreen;
|
2021-03-15 18:30:06 +00:00
|
|
|
bool test() {
|
|
|
|
bool a = true;
|
|
|
|
bool b = false;
|
|
|
|
bool c = true;
|
|
|
|
bool d = false;
|
|
|
|
bool e = true;
|
|
|
|
bool f = false;
|
|
|
|
bool g = true;
|
|
|
|
bool h = false;
|
|
|
|
bool i = true;
|
|
|
|
bool j = false;
|
|
|
|
return ((((((((a && !b) && c) && !d) && e) && !f) && g) && !h) && i) && !j;
|
|
|
|
}
|
2021-01-20 00:00:31 +00:00
|
|
|
vec4 main() {
|
2021-03-15 18:30:06 +00:00
|
|
|
return test() ? colorGreen : colorRed;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|