TerrainToolkit.SmoothTerrain

Method


function SmoothTerrain(iterations : float, blend : float) : void

Description

Smooths the terrain object repeatedly over a number of iterations. The resulting heightmap is then blended with the original heightmap by blend.

Returns

Nothing.

Example

var go : GameObject = GameObject.Find("Terrain");
go.GetComponent("TerrainToolkit").SmoothTerrain(3, 0.5);

Texturing

Terrain Toolkit