TerrainToolkit.NormaliseTerrain

Method


function NormaliseTerrain(minHeight : float, maxHeight : float, blend : float) : void

Description

Normalises the terrain object where the lowest point is set to minHeight and the greatest height is set to maxHeight. The resulting heightmap is then blended with the original heightmap by blend.

Note: For simplicity's sake, both British spelling (NormaliseTerrain) and U.S. spelling (NormalizeTerrain) will work correctly.

Returns

Nothing.

Example

var go : GameObject = GameObject.Find("Terrain");
go.GetComponent("TerrainToolkit").NormaliseTerrain(0.2, 0.8, 1.0);

Texturing

Terrain Toolkit