Lords & Peasants is a medieval real-time strategy and city building game developed by Inverted Cat Games. It has both single and multiplayer modes with up to 16 Players. Start out as a lord of a small village and develop it into a prospering city. Manage your city and rule over the peasants. Forge alliances and intimidate your enemies. Recruit an army and conquer the lands to create your kingdom.
Here is an example of how we are using dynamic path trails. It checks where peasants have been moving and then modfies the terrain control texture accordingly. Note that this is very slow with unities default build-in terrain shader, so it’s best to use a custom one (we used RTP3 which works well and looks nice).
It is possible to adjust the position of moving GameObjects on terrain efficiently. The CPU way would be to call a Terrain.SampleHeight per Frame, which is every inefficient and scales badly. The alternative is doing the work inside the shader so it happens on the GPU which is incredibly fast.