Unity Products:Amplify Shader Editor/Function Input

From Amplify Creations Wiki
Jump to: navigation, search

Back to Node List

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.
  • Int: Int type variable
  • Float: Float data type
  • Vector2: Float2 data type
  • Vector3: Float3 data type
  • Vector4: Float4 data type
  • Color: Color data type
  • Matrix 3x3: Float3x3 data type
  • Matrix 4x4: Float4x4 data type
  • Sampler 1D: Sampler1D data type
  • Sampler 2D: Sampler2D data type
  • Sampler 3D: Sampler3D data type
  • Sampler Cube: Cubemap data type
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

Back to Node List