Unity Products:Amplify Shader Editor/Parallax Mapping
Samples
The ASE package includes several Parallax samples, be sure to check them out.
- AmplifyShaderEditor\Examples\Official\ParallaxMapping
- AmplifyShaderEditor\Examples\Official\ParallaxOcclusionMappingPOM
- AmplifyShaderEditor\Examples\Official\ParallaxOffsetFakeInterior
About
Parallax mapping (also called offset mapping or virtual displacement mapping) is an enhancement of the bump mapping or normal mapping techniques applied to textures. Parallax mapping is implemented by displacing the texture coordinates at a point on the rendered polygon by a function of the view angle in tangent space (the angle relative to the surface normal) and the value of the height map at that point. At steeper view-angles, the texture coordinates are displaced more, giving the illusion of depth due to parallax effects as the view changes.[Reference]
Node
The Parallax Mapping node calculates offseted UVs used in the parallax mapping effect. The output can be connect to the Texture Sample node UV Input Ports, note that it should be connect to all channels (Albedo, Normal etc) in order to ensure that the effect is properly displayed.
Input
Output
|
Node Properties
- Normal - Cheaper approximation, view dependent.
- Planar - More accurate than the Normal mode but generates higher aliasing artifacts at steep angles.
1 Iteration
4 Iterations
You can stack several Parallax Mapping nodes for added detail.