Dynamically tessellating terrain deformation shader in Unity

preview_player
Показать описание
This is a system I wrote in unity that uses tessellation and compute shaders to simulate terrain deformation on a plane.
The compute shader detects the collisions and modifies the heightmap, and then the tessellation shader dynamically increases the polygon count of the plane according to the distance from the camera, and displaces the vertexes according to the map.

Code can be found on my github:

Also there is an article talking a bit about the process on my website:

Рекомендации по теме
Комментарии
Автор

Can I make it do it by itself without me moving it?

jonuelalvarado
Автор

could you share the source code for this? I really need a way to animate a mesh according to a sequence of heightmaps

adamoosthuizen