2021-02-08 19:20:28 +00:00
|
|
|
uniform half4 colorWhite, colorGreen, colorRed;
|
|
|
|
|
2021-04-21 18:27:08 +00:00
|
|
|
half4 main(float2 coords) {
|
2021-02-08 19:20:28 +00:00
|
|
|
half2 x = colorWhite.rg;
|
2020-09-17 22:20:26 +00:00
|
|
|
x = +x;
|
|
|
|
x = -x;
|
2021-02-08 19:20:28 +00:00
|
|
|
return x == half2(-1) ? colorGreen : colorRed;
|
2020-09-17 22:20:26 +00:00
|
|
|
}
|