Parallax Occlusion Mapping On Curved Surfaces In Unity | Shader Graph Mastery
Shader Graph Mastery
What are your thoughts ? I'd love to read them below !
Demonstration of Parallax Occlusion Mapping on Curved Surfaces, using Unity Shader Graph. Compared to regular Parallax Occlusion Mapping, silhouettes are cropped, and calculations are made as if the curvature is uniform... Which means it works very well on spheres but the effect breaks on flat or uneven curvature.
That said, it should be possible to fix it by calculating the curvature using screen-space derivatives (shown here with the watering can... negative curvature in blue and positive curvature in orange)
I hope you've enjoyed the video, and please comment if you need any detail on how I made this !
Music : Brotherhood by Stephan Siebert ... https://www.youtube.com/watch?v=-nyqPXBORgk
29566777 Bytes