TerrainToolkit.PerlinGenerator

Method


function PerlinGenerator(frequency : int, amplitude : float, octaves : int, blend : float) : void

Description

Generates a random heightmap on the terrain object using Perlin noise. The resulting heightmap is then blended with the original heightmap by blend.

Returns

Nothing.

Example

var go : GameObject = GameObject.Find("Terrain");
go.GetComponent("TerrainToolkit").PerlinGenerator(4, 1.0, 8, 0.8);

Texturing

Terrain Toolkit