Helper class for building IHeightmap objects that are based on procedurally generated content (see IScalarFunction and IColorFunction).
sealed class
|
ProceduralHeightmapBuilder
|
implements
|
IBuilder<IHeightmap>
|
See also:
HeightmapBuilder.ProceduralFinishes the build process and returns the resulting object.
[OwnerReturn, OwnerThis]
|
||||
public
method
|
Build
()
|
|||
type
|
IHeightmap
|
|||
returns
|
The resulting object. | |||
implements
|
IBuilder.Build
|
Specifies a noise function for the Coverage layer.
public
method
|
Coverage
(IScalarFunction noise)
|
||
type
|
ProceduralHeightmapBuilder
|
||
params
|
noise
|
[not-null]
|
The noise function that returns coverage values in the range [0..1]. |
returns
|
|
this |
Specifies a noise function for the Displacement layer.
public
method
|
Displacement
(IScalarFunction noise)
|
||
type
|
ProceduralHeightmapBuilder
|
||
params
|
noise
|
[not-null]
|
The noise function that returns terrain-space displacement values. |
returns
|
|
this |
Specifies a noise function for the Elevation layer.
public
method
|
Elevation
(IScalarFunction noise)
|
||
type
|
ProceduralHeightmapBuilder
|
||
params
|
noise
|
[not-null]
|
The noise function that returns terrain-space elevation values. |
returns
|
|
this |
Specifies a noise function for the Material layer.
public
method
|
Material
(int32 materialId,
IScalarFunction noise)
|
||
type
|
ProceduralHeightmapBuilder
|
||
params
|
materialId
|
[0..255]
|
The material ID. |
noise
|
[not-null]
|
The noise function that returns the material weight in the range [0..1]. | |
returns
|
|
this |
Specifies a noise function for one of the surface layers.
public
method
|
Texture
(IColorFunction noise)
|
||
type
|
ProceduralHeightmapBuilder
|
||
params
|
noise
|
[not-null]
|
The noise function that returns terrain surface colors. |
returns
|
|
this |