Unity Products:Amplify Shader Editor/Template Multi-Pass Switch

From Amplify Creations Wiki
Revision as of 17:40, 21 March 2018 by ampwiki>Amplify RnD Rick (→‎Template Multi-Pass Switch Node)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Node List

Template Multi-Pass Switch Node

The Template Multi-Pass Switch node relays, in compile time, the correct input port according to current analyzed sub-shader/pass.

This sample uses the Outline Multi-Pass Template example described over the templates documentation.
As it can be seen Outline Color, which is a Pass 0 variable with a color value of black, is relayed to the Outline output node and Main Body Color, which is a Pass 1 variable with a color value of white, is relayed to to the MainBody output node.

Back to Node List