2020-09-14 21:30:13 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
2020-09-14 21:30:13 +00:00
|
|
|
void main() {
|
|
|
|
bool expr1 = gl_FragCoord.x > 0.0;
|
|
|
|
bool expr2 = gl_FragCoord.y > 0.0;
|
|
|
|
if (expr1) {
|
|
|
|
sk_FragColor.x = 1.0;
|
|
|
|
} else if (!expr1) {
|
|
|
|
sk_FragColor.x = 3.0;
|
|
|
|
} else if (expr2) {
|
|
|
|
sk_FragColor.x = 4.0;
|
|
|
|
} else if (expr2) {
|
|
|
|
sk_FragColor.x = 5.0;
|
|
|
|
} else {
|
|
|
|
sk_FragColor.x = 6.0;
|
|
|
|
}
|
|
|
|
if (expr1) {
|
|
|
|
sk_FragColor.x = 1.0;
|
|
|
|
} else if (!expr1) {
|
|
|
|
sk_FragColor.x = 3.0;
|
|
|
|
} else if (expr2) {
|
|
|
|
sk_FragColor.x = 4.0;
|
|
|
|
} else if (expr2) {
|
|
|
|
sk_FragColor.x = 5.0;
|
|
|
|
} else {
|
|
|
|
sk_FragColor.x = 6.0;
|
|
|
|
}
|
|
|
|
}
|