You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
351 B
18 lines
351 B
/*#pragma settings UnfoldShortCircuitAsTernary*/
|
|
|
|
uniform bool x;
|
|
uniform bool y;
|
|
uniform int i;
|
|
uniform int j;
|
|
|
|
void main() {
|
|
bool andXY = x && y;
|
|
bool orXY = x || y;
|
|
bool combo = (x && y) || (x || y);
|
|
bool prec = (i + j == 3) && y;
|
|
while (andXY && orXY && combo && prec) {
|
|
sk_FragColor = half4(0);
|
|
break;
|
|
}
|
|
}
|