Integer and Boolean inputs for Shader Node Groups
We have Integers and Booleans in Geometry Nodes but sadly they are still missing from shader nodes.
There are many times when I want to use a boolean to switch between two values, or use an integer to select a discrete value.
Working around this using floats is very inconvenient, as you can't have a checkbox for booleans or easily increment/decrement whole integer values in the node group input.
Compositor nodes, texture nodes, and all other node editors should have them as well.
3 Comments
Looks like this was implemented recently. 4.3 shader node groups can have Int and Bool sockets.
Having Booleans could also allow for a switch node that could potentially be faster than the mix node.
It's not a big improvement, but it will allow us to make shader nodes even more organized. I'd like it.