Unity Products:Amplify Shader Editor/Function Input
Function Input Node
The Function Input node adds data entry points into Shader Functions. This node is specific to Shader Functions and cannot be created/used inside a normal shader.
Each Function Input node will be represented by an Input Port when its Shader Function node is used inside a canvas. Input port properties like name and data type will be set through the Function Input Name and Type.
Please use the following link for more in-depth information on shader functions.
Nodes used:
World Normal,
Function Input,
Dot,
View Dir,
Scale And Offset,
Function Output
Nodes used:
Function Node,
Light Attenuation,
Light Color,
Multiply
Node Parameter | Description | Default Value |
---|---|---|
Name | Specifies the input name which will be also used on its corresponding input port. | Input |
Input Type | Specifies the input data type which will be also used on its corresponding input port.
|
Float |
Auto Cast | Defines if Input Type will be changed by incoming connections. When toggled on, data type will always match a connection data type if it exists. | False |
Default Value | Defines a simple default value which will be used if no connection is made with the corresponding Input Port when the shader function is uses on the canvas.
Only visible if Input is not connected. |
0 |
Input Port | Description | Type |
---|---|---|
Input | Defines a default value which will be used if no connection is made with the corresponding Input Port when the shader function is uses on the canvas. | Float |