TerrainToolkit.TidalErosion

Method


function TidalErosion(iterations : int, seaLevel : float, tidalRange : float, cliffLimit : float) : void

Description

Performs tidal erosion on the terrain object over a number of iterations. Tidal erosion applies smoothing at seaLevel, except in areas where the slope exceeds cliffLimit degrees. This simulates the erosive action of waves around a shoreline and creates beaches. The effects of erosion are blended out towards zero over tidalRange in both directions.

Returns

Nothing.

Example

var go : GameObject = GameObject.Find("Terrain");
go.GetComponent("TerrainToolkit").TidalErosion(25, 50.0, 5.0, 60.0);

Texturing

Terrain Toolkit