2021-02-01 16:52:10 +00:00
|
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
|
2021-04-21 18:27:08 +00:00
|
|
|
half4 main(float2 coords) {
|
2021-02-01 16:52:10 +00:00
|
|
|
int a = 0, b = 0, c = 0, d = 0;
|
|
|
|
if (true) a = 1;
|
|
|
|
if (2 > 1) b = 2; else b = 3;
|
|
|
|
if (1 > 2) c = 4; else c = 5;
|
|
|
|
if (false) d = 6;
|
|
|
|
return (a == 1 && b == 2 && c == 5 && d == 0) ? colorGreen : colorRed;
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|