---
id: "worley-noise"
title: "Worley (Cellular) Noise"
aliases: [cellular noise, Voronoi noise, F1/F2 noise]
domain: "procgen"
stage: "procedural"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, cpu, blender, houdini, unity, unreal, godot, python]
year_introduced: 1996
outputs: [texture, heightfield]
style: "both"
dynamic: "both"
cost: "cheap"
authority: "Worley, 1996"
url: "https://texelatlas.vercel.app/t/worley-noise/"
sources_verified_at: "2026-11-29"
---
# Worley (Cellular) Noise (Worley, 1996)

> A procedural texture basis built from distances to the nearest scattered feature points. F1 gives cells, F2-F1 gives cell borders, and combinations give stone, cracks, scales and caustics.

## Reach for it when

- need cellular or cracked pattern texture
- make stone, scales or water caustics procedurally
- pattern with distinct cells and distances to points
- organic cell structure looks different from perlin noise

## How it works

Space is split into a grid and each cell holds a few jittered feature points, generated by hashing the cell index so the pattern is infinite and seedable. At a shading point you search the point's own cell and its neighbours (3x3 in 2D, 3x3x3 in 3D, sometimes more for several points per cell) and record the sorted distances F1, F2, F3 to the closest features. Any function of these distances is a texture: F1 looks like pebbles or bubbles, F2-F1 produces thin crack-like borders along Voronoi edges, F2 squashed gives scales. Switching the metric from Euclidean to Manhattan or Chebyshev changes cell shapes. The cell id of the nearest feature can also be used to give each cell a random colour or height.

## When to use it

Choose it for stone, tiles, cracked mud, cell membranes, scales or any texture with explicit cell structure, and as a source of cell ids for per-cell variation. Prefer [Perlin Noise (gradient lattice noise)](https://texelatlas.vercel.app/t/perlin-noise.md) family when you want smooth blobby fields, [Voronoi Diagrams and Lloyd Relaxation](https://texelatlas.vercel.app/t/voronoi-lloyd-relaxation.md) when you need an explicit mesh of cells rather than a per-pixel function, and [Poisson Disk Sampling (Bridson)](https://texelatlas.vercel.app/t/poisson-disk-sampling.md) when point spacing must be guaranteed.

## Cost

cheap — Fixed neighbourhood search per pixel (9 or 27 cells); cost grows with points per cell and with 3D.
Measured GPU Weight: 7.6× baseline (moderate) — 0.2502 ms median / 0.2579 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 6.68× baseline (moderate) — 0.1062 ms median (2.36× faster on L4).
Ampere A100 scaling: 4.82× baseline (light) — 0.1387 ms median (1.8× faster on A100).

## Failure modes

- Searching only the 3x3 neighbourhood misses the true nearest point when jitter is large, producing straight-edged discontinuities in F1
- F1 has gradient discontinuities along cell borders, which show as sharp creases in bump mapped surfaces
- Unbounded jitter plus low point density yields very large cells and visible lattice alignment
- Hash correlation between neighbouring cells creates repeating motifs

## Engine support

- babylonjs: builtin — `WorleyNoise3DBlock in Node Material Editor` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Materials/Node/Blocks/worleyNoise3DBlock.ts, checked 2026-12-01)
- blender: builtin — `Shader Editor > Add > Texture > Voronoi Texture (F1, F2, Smooth F1)` (evidence: https://docs.blender.org/manual/en/5.2/render/shader_nodes/textures/voronoi.html, checked 2026-12-01)
- godot: builtin — `FastNoiseLite > noise_type = FastNoiseLite.TYPE_CELLULAR (Voronoi / Worley cellular noise)` (evidence: https://github.com/godotengine/godot/blob/4.4-stable/modules/noise/fastnoise_lite.cpp, checked 2026-12-01)
- threejs: builtin — `import { mx_worley_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 — `Package Manager > Mathematics > noise.cellular` (evidence: https://github.com/Unity-Technologies/Unity.Mathematics/blob/master/src/Unity.Mathematics/Noise/cellular3D.cs, checked 2026-12-01) — Unity.Mathematics cellular noise; Shader Graph also has a Voronoi node.
- unreal: builtin — `Material Noise expression > Function = Voronoi (Worley/cellular)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/utility-material-expressions-in-unreal-engine, checked 2026-12-01)

## Dataflow

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

## Presets

### Worley F1 cells with F2-F1 borders (glsl-fragment; rendered 2026-11-29)

```json
{
  "scale": 7,
  "jitter": 1
}
```

```glsl
// GLSL ES 3.0, Shadertoy-style. Worley F1/F2 cells with animated feature points.
const float SCALE = 7.0;   // cells across the screen height
const float JITTER = 1.0;  // 0 = regular grid, 1 = fully random points

vec2 hash22(vec2 p){
  vec3 q = fract(vec3(p.xyx) * vec3(.1031, .1030, .0973));
  q += dot(q, q.yzx + 33.33);
  return fract((q.xx + q.yz) * q.zy);
}

void mainImage(out vec4 fragColor, in vec2 fragCoord){
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y * SCALE;
  vec2 ip = floor(uv);
  vec2 fp = fract(uv);
  float f1 = 8.0, f2 = 8.0;
  vec2 id = vec2(0.0);
  for (int j = -1; j <= 1; j++) {
    for (int i = -1; i <= 1; i++) {
      vec2 g = vec2(float(i), float(j));
      vec2 h = hash22(ip + g);
      vec2 o = 0.5 + 0.5 * sin(iTime * 0.8 + 6.2831 * h);
      vec2 pt = g + mix(vec2(0.5), o, JITTER);
      float d = length(pt - fp);
      if (d < f1) { f2 = f1; f1 = d; id = ip + g; }
      else if (d < f2) { f2 = d; }
    }
  }
  vec3 cellCol = 0.5 + 0.5 * cos(6.2831 * (hash22(id).x + vec3(0.0, 0.33, 0.67)));
  float edge = smoothstep(0.0, 0.08, f2 - f1);
  vec3 col = cellCol * (0.55 + 0.45 * (1.0 - f1));
  col = mix(vec3(0.03), col, edge);
  fragColor = vec4(col, 1.0);
}
```

Attribution: written for this index

## Sources

1. [primary] Steven Worley (1996) A cellular texture basis function. Proceedings of the 23rd annual conference on Computer graphics and interactive techniques. https://doi.org/10.1145/237170.237267 (verified via crossref on 2026-11-29)
2. [tutorial] Inigo Quilez Voronoise. iquilezles.org. https://iquilezles.org/articles/voronoise (verified via http on 2026-11-29)
3. [tutorial] Inigo Quilez Voronoi Edges. iquilezles.org. https://iquilezles.org/articles/voronoilines (verified via http on 2026-11-29)

## Cite this entry

Texel. "Worley (Cellular) Noise." https://texelatlas.vercel.app/t/worley-noise/ (accessed 2026-12-01).
