Unity Products:Amplify Shader Editor/Parallax Offset

From Amplify Creations Wiki
Revision as of 00:06, 2 December 2023 by AmplifyWiki (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Node List

Parallax Offset Node

The Parallax Offset node calculates an UV offset for parallax normal mapping using Unity internal ParallaxOffset function. This function implements a simplified Parallax mapping technique which distorts UV coordinates according to the current View Dir vector in 'tangent space, and an height map value at that point. At stepper view-angles the offset will be bigger and more displacement will occur, this gives a more sense of depth on looking at the surface.

NOTE: This node returns an offset value so it needs to be added to the surface texture coordinates in order to properly work.


Nodes used: Vertex TexCoord, Texture Sample, Float, View Dir, Parallax Offset, Add

Node Parameter Description Default Value
H Height map value. Only visible if the respective input port is not connected. 0
Height Offset value used to tweak the overall parallax effect. Only visible if the respective input port is not connected. 0
ViewDir Camera View direction vector, must be in tangent space. Only visible if the respective input port is not connected. 0,0,0


Input Port Description Type
H Height map value. Float
Height Offset value used to tweak the overall parallax effect. Float
ViewDir Camera View direction vector, must be in tangent space. Float3

Back to Node List