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.
|
uniform half4 colorGreen, colorRed;
|
|
|
|
inline bool ifTest(half4 color) {
|
|
bool result = bool(color.g);
|
|
return result;
|
|
}
|
|
|
|
half4 main(float2 coords) {
|
|
if (ifTest(colorGreen))
|
|
return colorGreen;
|
|
else
|
|
return colorRed;
|
|
}
|