[=;57351]
You can replace the IF statements in this material with the following nodes (Make it a material function if you want to reduce the nodes in the main material):
Since the values are between 0…1 these nodes just multiply the incoming values by 2 and then floors this value so for example if the incoming value is 0.25 then multiply this by 2 and you get 0.5, flooring this value makes 0. If the incoming value is 0.75, multiply this by 2 makes 1.5, flooring this makes 1.
[/]
This is exactly right. I was going to suggest this but saw that you beat me to it!
Great idea !