gradientPerturbFractal
Applies fractal gradient perturbation to a 3D position vector.
This method perturbs the input position vector using a fractal noise pattern based on multiple octaves of gradient noise. It combines parameters such as amplitude, frequency, lacunarity, and gain to control the noise characteristics, while supporting custom interpolation.
Return
The perturbed 3D position vector after applying the fractal gradient perturbation.
Parameters
The initial seed value to generate the noise.
The initial magnitude of the displacement during the perturbation.
The base frequency for the noise generation.
The frequency multiplier between successive octaves.
The amplitude multiplier between successive octaves.
The number of noise layers (octaves) to combine in the fractal calculation.
The input 3D vector representing the position to perturb.
A function to apply smooth interpolation, typically used for gradient noise transitions.
Applies fractal gradient perturbation to the given position vector using the specified parameters. This method introduces multiple layers of noise to create a fractal effect by perturbing the position iteratively based on the number of octaves, frequency, and amplitude adjustments.
Return
A 2D vector representing the perturbed position after applying the fractal gradient noise.
Parameters
An integer seed used to initialize the random number generator for noise generation.
The initial amplitude of the perturbation. Higher values result in larger displacements.
The initial frequency of the noise. Higher values increase the density of the noise variation.
The rate at which the frequency increases with each octave.
The rate at which the amplitude decreases with each octave.
The number of fractal noise layers to apply. More octaves increase detail.
A 2D vector representing the original point to be perturbed.
A function that defines how to interpolate values smoothly. Defaults to the quintic function.