10 lines
173 B
Plaintext
10 lines
173 B
Plaintext
|
|
uniform half4 colorGreen, colorRed;
|
||
|
|
|
||
|
|
inline bool test(half4 v) {
|
||
|
|
return bool(v.g);
|
||
|
|
}
|
||
|
|
|
||
|
|
half4 main(float2 coords) {
|
||
|
|
return test(colorGreen) ? colorGreen : colorRed;
|
||
|
|
}
|