TerrainToolkit.FastThermalErosion

Method


function FastThermalErosion(iterations : int, minSlope : float, falloff : float) : void

Description

Performs fast thermal erosion on the terrain object over a number of iterations. Thermal erosion removes material from areas with a slope greater than minSlope degrees and deposits it further down the slope. This tends to smooth and flatten inclines in the terrain. The effects of erosion are blended out towards zero over a range determined by falloff, where 0.0 results in no falloff and 1.0 results in maximum falloff.

Returns

Nothing.

Example

var go : GameObject = GameObject.Find("Terrain");
go.GetComponent("TerrainToolkit").FastThermalErosion(25, 5.0, 0.5);

Texturing

Terrain Toolkit