This shader allows you to create an array of scalar values whose evaluation is based on an integer switch (input). The evaluation is performed as follows:
When the input is equal to the index of an Item, the value of that Item is evaluated and the output (result) flows downstream through the render tree.
When input is equal to the index of more than one Item, the first Item (in sequential order from the top) to match gets evaluated and output.
If input matches none of the Items, then the default parameter is evaluated and output instead.
All of the parameters can be animated or driven by another shader in the render tree. You can also bypass this property editor and create input ports using a render tree workflow exclusively. For more information, see Adding Shader Nodes to the Render Tree [Materials and Shaders].
Add |
Create an Item group that consists of a scalar value and an integer index (for matching). You can add as many Item groups as you need for the effect. |
Clear |
Removes all Item groups from the list. |