Generates noise using the FastNoiseLite library.
This class generates noise using the FastNoiseLite library, which is a collection of several noise algorithms including Cellular, Perlin, Value, and more.
Most generated noise values are in the range of [-1, 1], but not always. Some of the cellular noise algorithms return results above 1.
If enabled, another FastNoiseLite instance is used to warp the space, resulting in a distortion of the noise.
Determines the strength of each subsequent layer of the noise which is used to warp the space.
A low value places more emphasis on the lower frequency base layers, while a high value puts more emphasis on the higher frequency layers.
The change in frequency between octaves, also known as "lacunarity", of the fractal noise which warps the space. Increasing this value results in higher octaves, producing noise with finer details and a rougher appearance.
The number of noise layers that are sampled to get the final value for the fractal noise which warps the space.
Frequency of the noise which warps the space. Low frequency results in smooth noise while high frequency results in rougher, more granular noise.
Determines the strength of each subsequent layer of noise in fractal noise.
A low value places more emphasis on the lower frequency base layers, while a high value puts more emphasis on the higher frequency layers.
Frequency multiplier between subsequent octaves. Increasing this value results in higher octaves producing noise with finer details and a rougher appearance.
The frequency for all noise types. Low frequency results in smooth noise while high frequency results in rougher, more granular noise.
TYPE_VALUE = 5A lattice of points are assigned random values then interpolated based on neighboring values.
TYPE_VALUE_CUBIC = 4Similar to value noise (TYPE_VALUE), but slower. Has more variance in peaks and valleys.
Cubic noise can be used to avoid certain artifacts when using value noise to create a bumpmap. In general, you should always use this mode if the value noise is being used for a heightmap or bumpmap.
TYPE_PERLIN = 3A lattice of random gradients. Their dot products are interpolated to obtain values in between the lattices.
TYPE_CELLULAR = 2Cellular includes both Worley noise and Voronoi diagrams which creates various regions of the same value.
TYPE_SIMPLEX = 0As opposed to TYPE_PERLIN, gradients exist in a simplex lattice rather than a grid lattice, avoiding directional artifacts. Internally uses FastNoiseLite's OpenSimplex2 noise type.
TYPE_SIMPLEX_SMOOTH = 1Modified, higher quality version of TYPE_SIMPLEX, but slower. Internally uses FastNoiseLite's OpenSimplex2S noise type.
FRACTAL_NONE = 0No fractal noise.
FRACTAL_FBM = 1Method using Fractional Brownian Motion to combine octaves into a fractal.
FRACTAL_RIDGED = 2Method of combining octaves into a fractal resulting in a "ridged" look.
FRACTAL_PING_PONG = 3Method of combining octaves into a fractal with a ping pong effect.
DISTANCE_EUCLIDEAN = 0Euclidean distance to the nearest point.
DISTANCE_EUCLIDEAN_SQUARED = 1Squared Euclidean distance to the nearest point.
DISTANCE_MANHATTAN = 2Manhattan distance (taxicab metric) to the nearest point.
DISTANCE_HYBRID = 3Blend of DISTANCE_EUCLIDEAN and DISTANCE_MANHATTAN to give curved cell boundaries.
RETURN_CELL_VALUE = 0The cellular distance function will return the same value for all points within a cell.
RETURN_DISTANCE = 1The cellular distance function will return a value determined by the distance to the nearest point.
RETURN_DISTANCE2 = 2The cellular distance function returns the distance to the second-nearest point.
RETURN_DISTANCE2_ADD = 3The distance to the nearest point is added to the distance to the second-nearest point.
RETURN_DISTANCE2_SUB = 4The distance to the nearest point is subtracted from the distance to the second-nearest point.
RETURN_DISTANCE2_MUL = 5The distance to the nearest point is multiplied with the distance to the second-nearest point.
RETURN_DISTANCE2_DIV = 6The distance to the nearest point is divided by the distance to the second-nearest point.
DOMAIN_WARP_SIMPLEX = 0The domain is warped using the simplex noise algorithm.
DOMAIN_WARP_SIMPLEX_REDUCED = 1The domain is warped using a simplified version of the simplex noise algorithm.
DOMAIN_WARP_BASIC_GRID = 2The domain is warped using a simple noise grid (not as smooth as the other methods, but more performant).
DOMAIN_WARP_FRACTAL_NONE = 0No fractal noise for warping the space.
DOMAIN_WARP_FRACTAL_PROGRESSIVE = 1Warping the space progressively, octave for octave, resulting in a more "liquified" distortion.
DOMAIN_WARP_FRACTAL_INDEPENDENT = 2Warping the space independently for each octave, resulting in a more chaotic distortion.