2020-09-15 14:10:43 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
2021-03-25 21:04:36 +00:00
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
2021-03-22 15:43:11 +00:00
|
|
|
vec4 trueSide_h4h4(vec4 v) {
|
2021-03-25 21:04:36 +00:00
|
|
|
return vec4(v.x, 1.0, v.zw);
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-22 15:43:11 +00:00
|
|
|
vec4 falseSide_h4h4(vec4 v) {
|
2021-03-25 21:04:36 +00:00
|
|
|
return vec4(v.x, 0.0, v.zw);
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
vec4 main() {
|
|
|
|
return bool(colorGreen.y) ? trueSide_h4h4(colorGreen) : falseSide_h4h4(colorRed);
|
2020-09-15 14:10:43 +00:00
|
|
|
}
|