Category: Processing > Switch
Shader Family: Texture
Output: Vector2
This shader allows you to create an array of 2D vectors whose evaluation is based on an integer switch (input). The evaluation
is performed as follows:
-
When the is equal to the of an Item, the of that Item is evaluated and the output () flows downstream through the render tree.
-
When is equal to the of more than one Item, the first Item (in sequential order from the top) to match gets evaluated and output.
-
If matches none of the Items, then the 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].
|
The name of the shader node displayed in the render tree. Enter any name you like, or leave the default.
|
|
Accepts an integer value that controls which Item's gets evaluated.
|
|
Sets the default 2D vector to use when the does not match the of any of the Items.
|
Values
|
Create an group that consists of a 2D vector and an integer (for matching). You can add as many Item groups as you need for the effect.
|
|
Removes all Item groups from the list.
|
Item
|
Click the icon (the " blue socket") to open a pop-up menu with the following commands:
Deletes the Item group from the list. Once an Item is removed from the list, it no longer influences the effect.
Promotes or demotes the Item group. The position of an Item in the list indicates its order of evalution.
|
|
An integer value. When the matches this , the for this Item is output through the render tree.
|
|
Sets the 2D vector values to use when the matches the for this Item.
|