ProceduralHeightmapBuilder

Description

sealed class Tinman.Terrain.Heightmaps.ProceduralHeightmapBuilder

Helper class for building IHeightmap objects that are based on procedurally generated content (see IScalarFunction and IColorFunction).

Public / Constructors

Build


[OwnerReturn]
public method Build → ()

returns → IHeightmap

The built object.

Builds a IHeightmap object from the current settings.

Public / Methods

Coverage


public method Coverage → (1)

noise in : IScalarFunction

[not-null]
The noise function that returns coverage values in the range [0..1].

returns → ProceduralHeightmapBuilder

this

Specifies a noise function for the HeightmapLayer.Coverage layer.

Displacement


public method Displacement → (1)

noise in : IScalarFunction

[not-null]
The noise function that returns terrain-space displacement values.

returns → ProceduralHeightmapBuilder

this

Specifies a noise function for the HeightmapLayer.Displacement layer.

Elevation


public method Elevation → (1)

noise in : IScalarFunction

[not-null]
The noise function that returns terrain-space elevation values.

returns → ProceduralHeightmapBuilder

this

Specifies a noise function for the HeightmapLayer.Elevation layer.

Material


public method Material → (2)

materialId in : int32

[0..255]
The material ID.

noise in : IScalarFunction

[not-null]
The noise function that returns the material weight in the range [0..1].

returns → ProceduralHeightmapBuilder

this

Specifies a noise function for the HeightmapLayer.Material layer.

Texture


public method Texture → (1)

noise in : IColorFunction

[not-null]
The noise function that returns terrain surface colors.

returns → ProceduralHeightmapBuilder

this

Specifies a noise function for one of the surface layers.