API reference
API reference
Select your platform
No SDKs available
No versions available

SimplexDistribution Class

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

Fields

PointSamplingConfig pointSamplingConfig[Get]

Public Statics

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.
Parameters
sceneAnchor
The MRUKAnchor representing the plane.
config
The configuration for point sampling.
Returns
A tuple containing two arrays: the first array contains the sampling points in local space, and the second array contains the normalized sampling points.

Member Functions

Distributes a scene decoration across a surface defined by an MRUKAnchor using the generated sampling points.
Parameters
sceneDecorator
The scene decorator used to generate the decoration.
sceneAnchor
The MRUKAnchor that defines the surface on which to distribute the decoration.
sceneDecoration
The scene decoration to be distributed.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon