Material Function Bool Branch

Hello,

I try to create a little effect via material function but I want to turn this effect with a bool on and off but fast I realized that I have no option to branch my bool or to convert it to a int/float for 0 or 1. So whats the workaround that I can use a bool Input and check for true 1 or false 0 to output the correct value depend on my input boolean?

Greets

You can use the “Switch” node in your Material Function. The control boolean goes in the “Value” and your two possible outputs into “True” and “False”

3 Likes

Thanks, that works :slight_smile: