Fractal Brownian Motion and Multifractals
Sum several octaves of a band-limited noise with increasing frequency and decreasing amplitude to get a self-similar field. Multifractal variants modulate each octave by the previous so rough peaks and smooth valleys emerge.
Also known as fBm, ridged multifractal, hybrid multifractal, spectral synthesis
In the family Procedural generation, noise composition
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Built in | import { mx_fractal_noise_float } from 'three/tsl' docs TSL node. |
| Babylon.js 9.38.0 | Built in | NoiseProceduralTexture (octaves, persistence in noise.fragment.fx) and Node Material CloudBlock (octaves) docs |
| Godot 4.7 | Built in | FastNoiseLite > fractal_type = FastNoiseLite.FRACTAL_FBM with configurable fractal_octaves docs |
| Unity | Official add-on | Visual Effect Graph > Operator > Perlin Noise or Cellular Noise with Octaves > 1 docs Requires the Visual Effect Graph package. |
| Unreal 5.7 | Built in | Material Noise expression > Levels (octaves) with optional Turbulence docs Octave summation via Levels, Output Min/Max and Level Scale. |
| Blender 5.2 | Built in | Noise Texture > Type = fBM, Multifractal, Hybrid Multifractal, Ridged Multifractal or Hetero Terrain docs |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
fBm evaluates noise at p, then repeatedly multiplies frequency by a lacunarity (usually about 2) and amplitude by a gain (about 0.5, i.e. Hurst exponent H with gain = 2^-H), accumulating the sum. The gain controls the spectral slope and hence perceived roughness; lacunarity should be a bit off 2 or the octaves are rotated and offset to hide lattice alignment. Musgrave's multifractals break the statistical uniformity: in a multifractal each octave is scaled by the running value, so high areas receive more small-scale detail than low ones, mimicking eroded mountains over smooth basins. Ridged multifractal takes 1-|n| to create sharp crests, and hybrid versions mix additive and multiplicative behaviour. The octave count caps detail and cost; bandlimiting octaves above the Nyquist for the pixel footprint avoids shimmering.
When to choose it
Reach for it when
- need a natural-looking base heightfield
- single noise layer looks smooth and boring
- clouds or marble need detail at many scales
- want rough mountains with smoother valleys
Choose it as the base heightfield generator and for clouds, marble or any natural-looking detail. Prefer Domain Warping on top when you want swirled, flow-like structure, Interactive Hydraulic Erosion on Heightfields or Stream-Power Erosion (Fluvial Terrain Uplift) when plain fBm terrain looks unconvincing because it lacks drainage networks, and Thermal (Talus) Erosion for cheap slope relaxation.
Field marks
- Statistically stationary: peaks and valleys look equally rough, the telltale 'blobby' fBm terrain without drainage networks
- Lattice alignment accumulates across octaves when frequency is exactly 2 with no rotation or offset
- Too many octaves alias at distance and shimmer unless fade-by-pixel-footprint is applied
- Domain-wide gain tuned for one height range breaks when the field is later remapped or clamped
Presets
fBm heightfield with hypsometric colouring and hillshade
{
"octaves": 7,
"lacunarity": 2,
"gain": 0.5,
"sea_level": 0.45
}Show GLSL (53 lines)
// GLSL ES 3.0, Shadertoy-style. fBm terrain: sea, beach, grass, rock, snow + hillshade.
const int OCTAVES = 7;
const float LACUNARITY = 2.0;
const float GAIN = 0.5;
const float SEA = 0.45;
float hash21(vec2 p){
p = fract(p * vec2(123.34, 456.21));
p += dot(p, p + 45.32);
return fract(p.x * p.y);
}
float vnoise(vec2 p){
vec2 i = floor(p), f = fract(p);
vec2 u = f * f * f * (f * (f * 6.0 - 15.0) + 10.0);
float a = hash21(i), b = hash21(i + vec2(1.0, 0.0));
float c = hash21(i + vec2(0.0, 1.0)), d = hash21(i + vec2(1.0, 1.0));
return mix(mix(a, b, u.x), mix(c, d, u.x), u.y);
}
float fbm(vec2 p){
float s = 0.0, a = 0.5, norm = 0.0;
mat2 rot = mat2(0.8, 0.6, -0.6, 0.8);
for (int i = 0; i < OCTAVES; i++) {
s += a * vnoise(p);
norm += a;
p = rot * p * LACUNARITY + vec2(17.1, 9.2);
a *= GAIN;
}
return s / norm;
}
float height(vec2 p){ return fbm(p); }
void mainImage(out vec4 fragColor, in vec2 fragCoord){
vec2 uv = fragCoord / iResolution.y;
vec2 p = uv * 3.0 + vec2(iTime * 0.02, 0.0);
float h = height(p);
float e = 0.004;
vec3 n = normalize(vec3(height(p - vec2(e, 0.0)) - height(p + vec2(e, 0.0)),
height(p - vec2(0.0, e)) - height(p + vec2(0.0, e)), 2.0 * e * 4.0));
float light = clamp(dot(n, normalize(vec3(-0.6, 0.5, 0.65))), 0.0, 1.0);
vec3 deep = vec3(0.02, 0.10, 0.25), shallow = vec3(0.10, 0.35, 0.50);
vec3 sand = vec3(0.76, 0.70, 0.50), grass = vec3(0.20, 0.42, 0.15);
vec3 rock = vec3(0.42, 0.38, 0.34), snow = vec3(0.95, 0.96, 0.98);
vec3 col;
if (h < SEA) {
col = mix(deep, shallow, smoothstep(SEA - 0.2, SEA, h));
} else {
col = mix(sand, grass, smoothstep(SEA, SEA + 0.04, h));
col = mix(col, rock, smoothstep(SEA + 0.12, SEA + 0.22, h));
col = mix(col, snow, smoothstep(SEA + 0.28, SEA + 0.34, h));
col *= 0.45 + 0.9 * light;
}
fragColor = vec4(col, 1.0);
}Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| fbm-terrain-color | Tesla T4 1920x1080 | 52.9× baseline (heavy) · 1.74 ms / 1.80 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| fbm-terrain-color | NVIDIA L4 1920x1080 | 45.1× baseline (heavy) · 0.717 ms / 0.724 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| fbm-terrain-color | NVIDIA A100-SXM4-40GB 1920x1080 | 36.4× baseline (heavy) · 1.05 ms / 1.05 ms · 1.7× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): cited by Terrain from Hydrology (River-First Terrain Synthesis), Model Synthesis, Stream-Power Erosion (Fluvial Terrain Uplift).
Crosses
- Domain Warping: fBm provides both the base field and the warp vectors.
- Interactive Hydraulic Erosion on Heightfields: fBm heightfield is the typical starting terrain that erosion then carves.
Sources
- primaryF. K. Musgrave, C. E. Kolb, R. S. Mace (1989). The synthesis and rendering of eroded fractal terrains. ACM SIGGRAPH Computer Graphics.Verified via crossref · 2026-11-29doi:10.1145/74334.74337
- primaryF. Kenton Musgrave (2003). Procedural fractal terrains. Texturing and Modeling.Verified via crossref · 2026-11-29doi:10.1016/b978-155860848-1/50045-0
- tutorialPatricio Gonzalez Vivo. The Book of Shaders: Fractal Brownian Motion. thebookofshaders.com.Verified via live page · 2026-11-29