-
Notifications
You must be signed in to change notification settings - Fork 88
Noise Settings
int GetSeed()
Returns seed
void SetSeed(int seed)
Used in all noise generation
void SetFrequency(float frequency)
Used in all noise generation except White Noise
void SetNoiseType(NoiseType noiseType)
Sets the type of noise returned by GetNoise()
Possible noise types:
- Value
- ValueFractal
- Gradient
- GradientFractal
- Simplex
- SimplexFractal
- WhiteNoise
- Cellular
- Cubic
- CubicFractal
void SetAxisScales(float xScale, float yScale, float zScale)
Used to scale individual axis when filling or getting a noise set.
This does not effect vector sets.
void SetFractalOctaves(unsigned int octaves)
Used in all fractal noise generation
void SetFractalLacunarity(float lacunarity)
Used in all fractal noise generation
void SetFractalGain(float gain)
Used in all fractal noise generation
void SetFractalType(FractalType fractalType)
Used in all fractal noise generation
Possible fractal types:
- FBM
- Billow
- RigidMulti
void SetCellularDistanceFunction(CellularDistanceFunction cellularDistanceFunction)
The distance function used to calculate the cell for a given point
Possible distance functions:
- Euclidean
- Manhattan
- Natural
(Natural is a blend of Euclidean and Manhattan to give curved cell boundaries)
void SetCellularReturnType(CellularReturnType cellularReturnType)
What value does the function return from its calculations
Possible return types:
- CellValue
- Distance
- Distance2
- Distance2Add
- Distance2Sub
- Distance2Mul
- Distance2Div
Only CellValue is bounded between -1.0 and 1.0, all distance return types have a minimum of -1.0 and varying maximums