PlantingOptions
Description
- Extended by
-
TerrainPlanting sealed
The PlantingOptions class provides various settings for tuning the behaviour of a Planting object.
Public / Constructors
PlantingOptions
2 overloads
Creates a new instance of PlantingOptions.
Creates a new instance of PlantingOptions.
Public / Attributes
Density
Determines the overall density of planted geometry instances.
The density value is interpreted as the average distance between geometry instances.
The default value is 1
.
Distance
Limits the minimum and maximum distance from the camera to the planting location.
Geometry instances will not be planted outside of this distance range.
The distance range is used in conjunction with Semantic.Radius in order to improve the performance of mesh traversal for planting.
The default value is RangeF.Zero.
Elevation
Constraints planting to the given terrain-space elevation range.
Geometry instances will not be planted outside of this elevation range.
The elevation range is used in conjunction with Semantic.ElevationMinMax in order to improve the performance of mesh traversal for planting.
The default value is RangeF.Max.
GeometryId
The geometry ID of the planted geometry instances.
The geometry ID is forwarded to IPlanter.InstancePlant.
The default value is 0
.
Material
The surface material to plant geometry instances on.
If the Semantic.Material vertex array is not present, planting will be performed everywhere. If present, the Semantic.MaterialMask vertex array is used to improve performance, by culling mesh sectors that do not contain any relevant materials.
The material ID is used in conjunction with Semantic.MaterialMask in order to improve the performance of mesh traversal for planting.
The default value is -1
.
Probability
The probability for planting geometry instances.
The probability is applied after a location on the terrain for planting has been chosen (i.e. according to Density).
The default value is 1
.
Weight
The material weight range to use for planting.
Geometry instances will not be planted if the material weight is outside of this range.
The material weight is used in conjunction with Semantic.MaterialRange in order to improve the performance of mesh traversal for planting.
The default value is [0..255].