Vector Multi - Switch
 
 
 

Category: Processing > Switch

Shader Family: Texture

Output: Vector

Specify one of eight inputs based on an integer Switch. The eight inputs are named Case 0 to Case 7. You can set an integer Value (for matching) and an Input for each Case.

When Switch is equal to the Value of Case n, the Input of Case n is evaluated and flows downstream through the render tree. When Switch is equal to the Value of more than one Case, the first Case (in numerical order) to match gets evaluated. If Switch matches none of the Cases, then the Default parameter is evaluated instead.

All of the parameters can be animated or driven by another shader in the render tree.

Default

Sets the default vector values to use when the Switch value does not match the Value of any of the Cases.

Switch

Accepts a varying set of integer values that control which Case's Input gets evaluated.

Case 0 - 7

Value

Specify an integer value. When the Switch value matches this value, the Input for this Case is evaluated and output through the render tree.

Input

Sets the vector values to use when the Switch value matches the Value for this Case.