Noise
3 nodes
On this page 3
Maximum Octaves
FunctionThe most octaves a Fractal Noise sums, so a mistyped count cannot keep the GPU busy forever.
Signature
MaximumOctaves() -> Integer
int MaximumOctaves()
Returns
| result | Integer |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Noise
- Package
- GPU Kernels
Fractal Noise
FunctionSums a pattern at finer and finer scales, each octave smaller and fainter than the last - fractal Brownian motion. The pattern is the Function graph named on Noise, read at the point, or a smooth value noise when none is named.
Signature
FractalNoise -> Number
UV: Vector 2D
noise: Func<Vector 2D, Number>
octaves: Integer
amplitude: Number
frequencyMultiplier: Number
amplitudeMultiplier: Number
size: Numberdouble FractalNoise(
Vector2D uv,
Func<Vector2D, double> noise,
int octaves = 4,
double amplitude = 0.5,
double frequencyMultiplier = 2,
double amplitudeMultiplier = 0.5,
double size = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| UV | Vector 2D | — | The point. |
| noise | Func<Vector 2D, Number> | — | The pattern to repeat: one of the document's Function graphs taking a point and answering a number. Smooth value noise when left empty. |
| octaves | Integer | 4 | How many scales are summed, up to 32. |
| amplitude | Number | 0.5 | How strongly the first octave counts. |
| frequencyMultiplier | Number | 2 | How much finer each octave is than the one before. |
| amplitudeMultiplier | Number | 0.5 | How much fainter each octave is than the one before. |
| size | Number | 1 | How large the first octave is. |
Returns
| Value | Number |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Noise
- Package
- GPU Kernels
Value Noise
FunctionSmooth noise from -1 to 1: a random value at every whole point, blended smoothly between them.
Signature
ValueNoise(UV: Vector 2D) -> Number
double ValueNoise(Vector2D uv)
Parameters
| name | type | default | description |
|---|---|---|---|
| UV | Vector 2D | — | The point; one unit is one cell of the noise. |
Returns
| Value | Number |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Noise
- Package
- GPU Kernels