I am creating a system that modifies a terrain using water flow in real-time.
The terrain is created using a displacement map.
Everything works fine, but I’d like to close the sides of the map (see image) so it looks like a cutout from a real terrain.
Any idea how this can be done ? The program renders the terrain and water flow in real time, I’d like to keep the speed up.
I could set the edges of the displacement map to 0, but then the texture map is stretched along the height and that looks less than nice. A separate texture for the sides is prefered.
My first thought was to use a boxgeometry and apply the displacement map on the top, but the displacement map doesn’t affect the vertices on the sides, so that doesn’t work well.
Any help is welcome!
regards
Matthijs