---
id: "fractal-brownian-motion"
title: "Fractal Brownian Motion and Multifractals"
aliases: [fBm, ridged multifractal, hybrid multifractal, spectral synthesis]
domain: "procgen"
stage: "procedural"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, cpu, blender, houdini, unity, unreal, godot, python]
year_introduced: 1989
outputs: [heightfield, texture, volume-density]
style: "both"
dynamic: "both"
cost: "cheap"
authority: "Musgrave et al., 1989"
url: "https://texelatlas.vercel.app/t/fractal-brownian-motion/"
sources_verified_at: "2026-11-29"
---
# Fractal Brownian Motion and Multifractals (Musgrave et al., 1989)

> 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.

## 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

## 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 use it

Choose it as the base heightfield generator and for clouds, marble or any natural-looking detail. Prefer [Domain Warping](https://texelatlas.vercel.app/t/domain-warping.md) on top when you want swirled, flow-like structure, [Interactive Hydraulic Erosion on Heightfields](https://texelatlas.vercel.app/t/hydraulic-erosion-stava.md) or [Stream-Power Erosion (Fluvial Terrain Uplift)](https://texelatlas.vercel.app/t/stream-power-erosion.md) when plain fBm terrain looks unconvincing because it lacks drainage networks, and [Thermal (Talus) Erosion](https://texelatlas.vercel.app/t/thermal-erosion.md) for cheap slope relaxation.

## Cost

cheap — Linear in octave count; 4 to 8 octaves is typical for terrain.
Measured GPU Weight: 52.91× baseline (heavy) — 1.7407 ms median / 1.7977 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 45.06× baseline (heavy) — 0.7165 ms median (2.43× faster on L4).
Ampere A100 scaling: 36.43× baseline (heavy) — 1.0491 ms median (1.66× faster on A100).

## Failure modes

- 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

## Engine support

- babylonjs: builtin — `NoiseProceduralTexture (octaves, persistence in noise.fragment.fx) and Node Material CloudBlock (octaves)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Shaders/noise.fragment.fx, checked 2026-12-01)
- blender: builtin — `Noise Texture > Type = fBM, Multifractal, Hybrid Multifractal, Ridged Multifractal or Hetero Terrain` (evidence: https://docs.blender.org/manual/en/5.2/render/shader_nodes/textures/noise.html, checked 2026-12-01)
- godot: builtin — `FastNoiseLite > fractal_type = FastNoiseLite.FRACTAL_FBM with configurable fractal_octaves` (evidence: https://github.com/godotengine/godot/blob/4.4-stable/modules/noise/fastnoise_lite.cpp, checked 2026-12-01)
- threejs: builtin — `import { mx_fractal_noise_float } from 'three/tsl'` (evidence: https://github.com/mrdoob/three.js/blob/r187/src/nodes/materialx/MaterialXNodes.js, checked 2026-12-01) — TSL node.
- unity: official — `Visual Effect Graph > Operator > Perlin Noise or Cellular Noise with Octaves > 1` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.visualeffectgraph/Documentation~/Operator-PerlinNoise.md, checked 2026-12-01) — Requires the Visual Effect Graph package.
- unreal: builtin — `Material Noise expression > Levels (octaves) with optional Turbulence` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/utility-material-expressions-in-unreal-engine, checked 2026-12-01) — Octave summation via Levels, Output Min/Max and Level Scale.

## Dataflow

- Inputs: —
- Outputs: heightfield, texture, volume-density
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, cpu, blender, houdini, unity, unreal, godot, python

## Presets

### fBm heightfield with hypsometric colouring and hillshade (glsl-fragment; rendered 2026-11-29)

```json
{
  "octaves": 7,
  "lacunarity": 2,
  "gain": 0.5,
  "sea_level": 0.45
}
```

```glsl
// 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

## Lineage

- extends [Perlin Noise (gradient lattice noise)](https://texelatlas.vercel.app/t/perlin-noise.md)
- extended by [Domain Warping](https://texelatlas.vercel.app/t/domain-warping.md)

## Combines with

- [Domain Warping](https://texelatlas.vercel.app/t/domain-warping.md): fBm provides both the base field and the warp vectors.
- [Interactive Hydraulic Erosion on Heightfields](https://texelatlas.vercel.app/t/hydraulic-erosion-stava.md): fBm heightfield is the typical starting terrain that erosion then carves.

## Sources

1. [primary] F. K. Musgrave, C. E. Kolb, R. S. Mace (1989) The synthesis and rendering of eroded fractal terrains. ACM SIGGRAPH Computer Graphics. https://doi.org/10.1145/74334.74337 (verified via crossref on 2026-11-29)
2. [primary] F. Kenton Musgrave (2003) Procedural fractal terrains. Texturing and Modeling. https://doi.org/10.1016/b978-155860848-1/50045-0 (verified via crossref on 2026-11-29)
3. [tutorial] Inigo Quilez fBM. iquilezles.org. https://iquilezles.org/articles/fbm (verified via http on 2026-11-29)
4. [tutorial] Patricio Gonzalez Vivo The Book of Shaders: Fractal Brownian Motion. thebookofshaders.com. https://thebookofshaders.com/13 (verified via http on 2026-11-29)

## Cite this entry

Texel. "Fractal Brownian Motion and Multifractals." https://texelatlas.vercel.app/t/fractal-brownian-motion/ (accessed 2026-12-01).
