2020-09-17 22:20:26 +00:00
|
|
|
|
2021-02-01 16:52:10 +00:00
|
|
|
out vec4 sk_FragColor;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
|
|
|
vec4 main() {
|
2021-03-08 18:29:15 +00:00
|
|
|
const vec4 b = vec4(1.0);
|
|
|
|
vec4 c = abs(b);
|
|
|
|
if (b != c) {
|
2021-02-09 23:29:40 +00:00
|
|
|
return colorRed;
|
|
|
|
} else {
|
2021-02-01 16:52:10 +00:00
|
|
|
return colorGreen;
|
|
|
|
}
|
2020-09-17 22:20:26 +00:00
|
|
|
}
|