Unity Products:Amplify Shader Editor/Linear Depth

From Amplify Creations Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Back to Node List

Linear Depth Node

The Linear Depth node calculates a linear value, usually given from a depth texture. Values read from a read texture range between 0 and 1, with a non-linear/logarithmic distribution and must be converted to a linear space to be properly used.


Nodes used: Screen Position, Swizzle, Texture Sample, Linear Depth

Node Parameter Description Default Value
View Space Linear space for the value to be converted to.
  • Eye Space: Returns linear depth on a range between camera's near and far plane
  • 0-1 Space: Returns linear depth on a range between 0 and 1
Eye Space


Input Port Description Type
Input Non-linear depth value to be converted. Float

Back to Node List