TerrainToolkit.FractalGenerator

Method


function FractalGenerator(fractalDelta : float, blend : float) : void

Description

Generates a random heightmap on the terrain object using the cloud or plasma fractal algorithm. Higher values of fractalDelta result in rougher terrain. The resulting heightmap is then blended with the original heightmap by blend.

Returns

Nothing.

Example

var go : GameObject = GameObject.Find("Terrain");
go.GetComponent("TerrainToolkit").FractalGenerator(0.55, 1.0);

Texturing

Terrain Toolkit