Interactive Surface Shader – Mud/Snow
A URP tessellation lit shader for deformable surfaces that displaces geometry using a static heightmap and a runtime-painted splat map for interaction trails.
by STVDev
Price History +
HOW IT WORKS: The Interactive Surface system uses an orthographic camera that renders only the particles emitted by the interacting object (for example, the player's footsteps, trail or vehicle tracks).
The Interactive Surface material, which uses one of the included Distance Tessellation shaders samples the Render Texture outputted by the camera and uses the information stored in it to dynamically displace the mesh vertices.
IMPORTANT: The current version of the system has a limitation: multiple instances of the Interactive Ground prefab cannot be used simultaneously within the same scene without additional setup.
A simple workaround is included in the Demo_02 scene. Instead of keeping all Trail Cameras active, only a single Trail Camera should be active at any given time. Improvements are on the way.