Difference between revisions of "Unity Products:Amplify Shader Editor/Switch by Pipeline"

From Amplify Creations Wiki
Jump to: navigation, search
(Switch by Pipeline Node)
 
Line 3: Line 3:
  
 
The Switch by Pipeline allows having different behaviors/sub-graphs inside a shader function according to the current pipeline used over the main shader.
 
The Switch by Pipeline allows having different behaviors/sub-graphs inside a shader function according to the current pipeline used over the main shader.
 +
 +
'''NOTE:''' The shader still needs to be saved on the desired platform in order to generate the required code; just using this node will not automatically make your shader compatible with multiple renderers.
  
 
{| class="wikitable" style="width: 100%;"
 
{| class="wikitable" style="width: 100%;"

Latest revision as of 13:38, 1 February 2021

Back to Node List

Switch by Pipeline Node

The Switch by Pipeline allows having different behaviors/sub-graphs inside a shader function according to the current pipeline used over the main shader.

NOTE: The shader still needs to be saved on the desired platform in order to generate the required code; just using this node will not automatically make your shader compatible with multiple renderers.

Input Port Description Type
Standard Active when no default pipeline used (no custom rendering pipeline). Float [1]
Lightweight Active when shader is set up to use Lightweight rendering pipeline. Float [1]
HD Active when shader is set up to use HD rendering pipeline. Float [1]

  1. ^ Port automatically adapts to all connection types.

Back to Node List