×
×

Dynamic Displacement

When using vertex offset in shaders, objects on the ground will clip through the players feet. So to remove this issue. I made a shader that takes into consideration the players 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.