2021-01-30 16:06:18 +00:00
|
|
|
|
|
|
|
out vec4 sk_FragColor;
|
|
|
|
uniform vec4 colorRed;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorWhite;
|
|
|
|
uniform vec4 colorBlack;
|
2021-03-22 15:43:11 +00:00
|
|
|
void setToColorBlack_vh4(out vec4 x) {
|
2021-01-30 16:06:18 +00:00
|
|
|
x = colorBlack;
|
|
|
|
}
|
|
|
|
vec4 main() {
|
|
|
|
vec4 a;
|
|
|
|
vec4 b;
|
|
|
|
vec4 c;
|
|
|
|
vec4 d;
|
|
|
|
(b = colorRed , c = colorGreen);
|
2021-03-22 15:43:11 +00:00
|
|
|
a = (setToColorBlack_vh4(d) , colorWhite);
|
2021-01-30 16:06:18 +00:00
|
|
|
a *= a;
|
|
|
|
b *= b;
|
|
|
|
c *= c;
|
|
|
|
d *= d;
|
|
|
|
return ((a == colorWhite && b == colorRed) && c == colorGreen) && d == colorBlack ? colorGreen : colorRed;
|
|
|
|
}
|