- Home /
Question by
KosGrillis · Aug 27, 2017 at 08:19 AM ·
waterwater effects
programmatically place a plane of water on a procedurally generated terrain
I have implemented the diamond square algorithm to generated a simple terrain. Next, I'd like a plane of water which ends at the bounds of the terrain is is centred with the terrain.
Essentially, I want my plane of water to stretch to each edge of my terrain (the terrain forms a square). Here's a screenshot of my terrain:
I know unity has a water prefab but I want a water plane that can have its position and bounds programmatically set once the terrain has been generated.
How can I do this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612133635im_/https://answers.unity.com/themes/thub/images/avi.jpg)