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.
14 lines
254 B
14 lines
254 B
7 months ago
|
uniform half4 colorGreen, colorRed;
|
||
|
|
||
|
inline half4 trueSide(half4 v) {
|
||
|
return v.r1ba;
|
||
|
}
|
||
|
|
||
|
inline half4 falseSide(half4 v) {
|
||
|
return v.r0ba;
|
||
|
}
|
||
|
|
||
|
half4 main(float2 coords) {
|
||
|
return bool(colorGreen.g) ? trueSide(colorGreen) : falseSide(colorRed);
|
||
|
}
|