---
id: "curl-noise-flow"
title: "Curl noise for procedural fluid motion"
aliases: [curl noise, divergence-free noise, pseudo-fluid flow]
domain: "simulation"
stage: "simulation"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, cpu, unity, unreal, godot, houdini, blender]
year_introduced: 2007
inputs: [particles]
outputs: [particles, volume-density]
style: "both"
dynamic: "dynamic"
cost: "cheap"
authority: "Bridson et al., 2007"
url: "https://texelatlas.vercel.app/t/curl-noise-flow/"
sources_verified_at: "2026-11-29"
---
# Curl noise for procedural fluid motion (Bridson et al., 2007)

> Take the curl of a smooth noise potential to get a velocity field with zero divergence, so advected particles swirl like fluid without bunching up or draining away.

## Reach for it when

- particles bunch up or drain away under plain noise motion
- want swirling smoke motion without running a fluid solver
- need divergence free turbulence for cheap pseudo fluid
- dust and embers should flow around in believable eddies

## How it works

Pick a smooth scalar noise potential psi(x, y) in 2D, or a vector potential of three noise functions in 3D. The velocity is its curl: in 2D v = (dpsi/dy, -dpsi/dx), in 3D v = curl of the vector potential. Because the divergence of a curl is identically zero, the field is incompressible: advected points neither pile up nor spread out in a net way. Derivatives come analytically from gradient noise or by central differences of a few samples. Boundaries are handled by ramping the potential toward zero near an obstacle, or by blending with the distance-based gradient so the flow becomes tangent to the surface and goes around it. Animating the potential over time, or offsetting noise octaves, changes the flow and adds turbulence at several scales. The result is evaluated per particle each step with no neighbour search, and a few octaves already read as smoke or ink in water.

## When to use it

Choose it for cheap, art-directable turbulence for smoke, dust, embers, magic and ambient flow where real fluid dynamics is unnecessary. Prefer [Stable Fluids](https://texelatlas.vercel.app/t/stable-fluids.md), [FLIP/PIC fluids](https://texelatlas.vercel.app/t/flip-pic-fluids.md) or [Lattice Boltzmann fluids](https://texelatlas.vercel.app/t/lattice-boltzmann-fluids.md) when the flow must respond to moving objects, buoyancy or vorticity from real physics. Prefer [Domain Warping](https://texelatlas.vercel.app/t/domain-warping.md) for static texture patterns, and plain [Perlin Noise (gradient lattice noise)](https://texelatlas.vercel.app/t/perlin-noise.md) or [Simplex Noise](https://texelatlas.vercel.app/t/simplex-noise.md) offsets when divergence does not matter. Use it as the force input to [GPU particle systems](https://texelatlas.vercel.app/t/gpu-particle-systems.md) and as a wind source for [Procedural foliage wind animation](https://texelatlas.vercel.app/t/foliage-wind-animation.md).

## Cost

cheap — Four to six noise samples per particle per step in 2D, more in 3D; multiple octaves multiply it.
Measured GPU Weight: 424.94× baseline (extreme) — 13.9804 ms median / 14.1352 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 358.88× baseline (extreme) — 5.7062 ms median (2.45× faster on L4).
Ampere A100 scaling: 300.16× baseline (extreme) — 8.6446 ms median (1.62× faster on A100).

## Failure modes

- No true dynamics: flow ignores obstacles and sources unless the potential is explicitly modified near them
- Boundary ramping produces visible stagnation or ring artefacts around colliders
- Low-frequency potentials give long coherent loops that look mechanical
- Finite-difference step too large or too small causes visible blockiness or noise in the derivative
- Streams in 3D can spiral into tubes and closed orbits, so particles keep circling instead of dispersing

## Engine support

- godot: builtin — `GPUParticles3D > ParticleProcessMaterial.turbulence_enabled = true (evaluates 3D curl_3d noise field)` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/scene/resources/particle_process_material.cpp, checked 2026-12-01)
- threejs: official — `import { curlNoise } from 'three/addons/tsl/math/curlNoise.js'` (evidence: https://github.com/mrdoob/three.js/blob/r187/examples/jsm/tsl/math/curlNoise.js, checked 2026-12-01)
- unity: official — `VFX Graph > Operator > Perlin Curl Noise (also Cellular/Value); Turbulence block` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.visualeffectgraph/Documentation~/Operator-PerlinCurlNoise.md, checked 2026-12-01) — Requires the Visual Effect Graph package.
- unreal: builtin — `Material graph: VectorNoise (Function = VNF_CURL_ALU); Niagara: Curl Noise Force module` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/class/VectorNoiseFunction, checked 2026-12-01)

## Dataflow

- Inputs: particles
- Outputs: particles, volume-density
- Platforms: webgl2, webgpu, desktop-gpu, cpu, unity, unreal, godot, houdini, blender

## Presets

### Curl-noise flow visualised with line integral convolution (glsl-fragment; rendered 2026-11-29)

```json
{
  "freq": 2.5,
  "steps": 18,
  "step_len": 0.006,
  "grain_density": 110,
  "drift": 0.15
}
```

```glsl
// GLSL ES 3.0, Shadertoy-style. Curl of a scalar noise potential, drawn as line-integral-convolution streaks.
const float FREQ    = 2.5;     // spatial frequency of the potential
const int   STEPS   = 18;      // integration steps each way
const float STEP    = 0.006;   // step length in uv units
const float DENSITY = 110.0;   // grain resolution of the smeared noise
const float DRIFT   = 0.15;    // potential animation speed

float hash21(vec2 p) {
    vec3 p3 = fract(vec3(p.xyx) * 0.1031);
    p3 += dot(p3, p3.yzx + 33.33);
    return fract((p3.x + p3.y) * p3.z);
}
float vnoise(vec2 p) {
    vec2 i = floor(p), f = fract(p);
    f = f * f * f * (f * (f * 6.0 - 15.0) + 10.0);
    return mix(mix(hash21(i), hash21(i + vec2(1, 0)), f.x),
               mix(hash21(i + vec2(0, 1)), hash21(i + vec2(1, 1)), f.x), f.y);
}
float potential(vec2 p) {
    vec2 q = p * FREQ + vec2(iTime * DRIFT, 0.0);
    return vnoise(q) + 0.5 * vnoise(q * 2.0 + 7.3);
}
vec2 curl(vec2 p) {                       // divergence-free by construction
    const float e = 0.01;
    float dx = potential(p + vec2(e, 0)) - potential(p - vec2(e, 0));
    float dy = potential(p + vec2(0, e)) - potential(p - vec2(0, e));
    return vec2(dy, -dx) / (2.0 * e);
}

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
    float sum = 0.0, wsum = 0.0;
    for (int dir = 0; dir < 2; dir++) {
        vec2 p = uv;
        float s = dir == 0 ? 1.0 : -1.0;
        for (int i = 0; i < STEPS; i++) {
            vec2 v = curl(p);
            p += s * STEP * v / (length(v) + 1e-4);
            float w = 1.0 - float(i) / float(STEPS);
            sum += w * hash21(floor(p * DENSITY));
            wsum += w;
        }
    }
    float g = sum / wsum;
    vec2 v = curl(uv);
    vec3 tint = 0.5 + 0.5 * cos(atan(v.y, v.x) + vec3(0.0, 2.1, 4.2));
    fragColor = vec4(mix(vec3(g), tint * g * 1.6, 0.55), 1.0);
}
```

Attribution: written for this index

## Combines with

- [GPU particle systems](https://texelatlas.vercel.app/t/gpu-particle-systems.md): Each particle samples the curl field as its velocity or acceleration, giving swirling motion without neighbour interaction.
- [Procedural foliage wind animation](https://texelatlas.vercel.app/t/foliage-wind-animation.md): The curl field acts as a divergence-free wind source sampled at each vertex's world position.

## Sources

1. [primary] Robert Bridson, Jim Houriham, Marcus Nordenstam (2007) Curl-noise for procedural fluid flow. ACM SIGGRAPH 2007 papers. https://doi.org/10.1145/1275808.1276435 (verified via crossref on 2026-11-29)

## Cite this entry

Texel. "Curl noise for procedural fluid motion." https://texelatlas.vercel.app/t/curl-noise-flow/ (accessed 2026-12-01).
