Unity Products:Amplify Shader Editor/Camera Depth Fade

From Amplify Creations Wiki
Jump to: navigation, search

Back to Node List

Camera Depth Fade Node

The Camera Depth Fade node outputs the difference between a surface depth and the cameras near plane. The calculated value is set on a linear [0,1] range and can be tweaked via the Length and Offset parameters.


Nodes used: Float, Camera Depth Fade


Node Parameter Description Default Value
Vertex Position Don't use this internal data as it's ignored internally. Only visible if the respective input port is not connected. 0
Length Defines the distance in view coordinates over which the fade between 0 and 1 values should occur. Only visible if the respective input port is not connected. 0
Offset Defines an offset in view coordinates to the cameras near plane on which the fade from 0 to 1 should start. Only visible if the respective input port is not connected. 0


Input Port Description Type
Vertex Position Allow the specification of a custom vertex position. Uses current vertex position if left unconnected. Float3
Length Defines the distance in view coordinates over which the fade between 0 and 1 values should occur. Float
Offset Defines an offset in view coordinates to the cameras near plane on which the fade from 0 to 1 should start. Float


Back to Node List