API reference

SimplexDistribution Class

Implements SceneDecorator.IDistribution
A distribution that generates points on a plane using simplex noise.

Fields

pointSamplingConfig : PointSamplingConfig
Signature
PointSamplingConfig pointSamplingConfig

Static Fields

Vector2
Generates uniform sampling points with simplex noise applied for a given plane in localspace.
The points will be generated based on the specified resolution within the interior of the plane, with no points on the borders. If the plane is too small, at least one point will still be generated.
Signature
Vector2[]

Methods

Distribute ( sceneDecorator , sceneAnchor , sceneDecoration )
Distributes a scene decoration across a surface defined by an MRUKAnchor using the generated sampling points.
Signature
void Distribute(SceneDecorator sceneDecorator, MRUKAnchor sceneAnchor, SceneDecoration sceneDecoration)
Parameters
sceneDecorator: SceneDecorator  The scene decorator used to generate the decoration.
sceneAnchor: MRUKAnchor  The MRUKAnchor that defines the surface on which to distribute the decoration.
sceneDecoration: SceneDecoration  The scene decoration to be distributed.
Returns
void

Inner Struct

PointSamplingConfig Struct

Configuration for the point sampling.

Fields

noiseOffsetRadius : float
Signature
float noiseOffsetRadius
pointsPerUnitX : float
Signature
float pointsPerUnitX
pointsPerUnitY : float
Signature
float pointsPerUnitY

Static Fields

DefaultConfig : PointSamplingConfig
Signature
PointSamplingConfig DefaultConfig