API reference

CellularNoiseMask Class

Extends Mask2D
A mask that uses cellular noise to generate a 2D grid of points.

Methods

Check ( c )
Not used on this mask.
Signature
override bool Check(Candidate c)
Parameters
c: Candidate  The candidate
Returns
override bool  true
SampleMask ( c )
This method generates a sample mask for the given candidate.
It applies an affine transformation to the local position of the candidate, and then uses the Worley noise function to generate a value between 0 and 1. The resulting value is used as the sample mask for the candidate.
Signature
override float SampleMask(Candidate c)
Parameters
c: Candidate  The candidate for which to generate the sample mask.
Returns
override float  The sample mask value for the given candidate.