TerrainToolkit.FullHydraulicErosion
Method
function FullHydraulicErosion(iterations : int, rainfall : float, evaporation : float, solubility : float, saturation : float) : void
Description
Performs full hydraulic erosion on the terrain object over a number of iterations.
Each iteration, an amount of water equal to rainfall is added to the system as precipitation per iteration. An amount of material equal to solubility and proportional to the amount of water at that point is dissolved up to a maximum of saturation. The water flows downhill through the system, carrying any dissoved sediment with it. At the end of each iteration an amount of water equal to evaporation is removed from the system. When water is evaporated, it leaves behind sedimentary deposits if the the amount of remaining water after evaporation is insufficient to contain the amount of sediment at that point.
Returns
Nothing.
Example
var go : GameObject = GameObject.Find("Terrain");
go.GetComponent("TerrainToolkit").FullHydraulicErosion(25, 0.01, 0.5, 0.01, 0.2);