James ÅkessonTechnical Artist

Dynamic Displacement

A ground material that displaces the ground around the player so it doesn't look flat.

Year
2022
Kind
Shaders
Made with
Unreal Engine
Live
Re-created on the landing page
Hooded character in blue armour running across a white ground that sinks into a dark hollow around their feet, with green grass, boulders and a shrine tower with a red diamond and orbiting spheres against a black sky.

When using vertex offset in shaders, objects on the ground will clip through the player's feet. So to remove this issue, I made a shader that takes into consideration the player's position and the view of the camera to calculate depth away from the player and change the displacement so that the feet will always be flat onto the collider they are interacting with.