This shader allows you to create an array of 4-by-4 matrices 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.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License