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

From Amplify Creations Wiki
Jump to navigation Jump to search
ampwiki>Amplify RnD Rick
 
m (1 revision imported)
 
(No difference)

Latest revision as of 00:06, 2 December 2023

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