---
id: "simplex-noise"
title: "Simplex Noise"
aliases: [OpenSimplex (patent-free relative)]
domain: "procgen"
stage: "procedural"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, cpu, unity, unreal, godot, python]
year_introduced: 2001
outputs: [texture, heightfield, volume-density]
style: "both"
dynamic: "both"
cost: "cheap"
authority: "Gustavson"
url: "https://texelatlas.vercel.app/t/simplex-noise/"
sources_verified_at: "2026-11-29"
---
# Simplex Noise (Gustavson)

> Gradient noise evaluated on a simplicial grid (triangles in 2D, tetrahedra in 3D) rather than a cubic one, so the number of contributing corners grows linearly with dimension and directional artifacts shrink.

## Reach for it when

- perlin noise shows grid-aligned artefacts
- need animated 3d or 4d noise cheaply
- noise for volumetric density with less directional bias
- noise cost grows too fast in higher dimensions
- smoother organic noise for clouds or terrain

## How it works

The input is skewed so the unit hypercubes become sets of simplices; the cell containing the point is found by sorting the fractional coordinates. Only n+1 corners contribute instead of 2^n. Each corner gets a hashed gradient, and its contribution is the dot product times a radially symmetric falloff kernel of the form (r^2 - d^2)^4 clipped at zero beyond the corner's influence radius. Contributions are summed and scaled to roughly unit range, then unskewed coordinates are used for distance. The summation kernel instead of interpolation gives a visually more isotropic field with no axis-aligned bias. The original idea is Perlin's 2001 course material; Gustavson's write-up and GLSL implementations made it practical on GPUs.

## When to use it

Choose it for 3D/4D animated noise (time as fourth dimension), for volumetric density, or when grid alignment in [Improved Perlin Noise](https://texelatlas.vercel.app/t/improved-perlin-noise.md) is visible. Prefer [Improved Perlin Noise](https://texelatlas.vercel.app/t/improved-perlin-noise.md) in 2D when you need simplicity or analytic derivatives are already derived for it, and note that classic 3D simplex was patented in the US until 2022, so older engines ship OpenSimplex variants.

## Cost

cheap — Fewer corners than cubic Perlin in 3D and above; in 2D the two are comparable.
Measured GPU Weight: 4.92× baseline (light) — 0.1619 ms median / 0.1711 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 3.92× baseline (light) — 0.0623 ms median (2.6× faster on L4).
Ampere A100 scaling: 2.77× baseline (light) — 0.0798 ms median (2.03× faster on A100).

## Failure modes

- Patent history (US 6867776, expired January 2022) led many libraries to ship look-alike variants with different output, so seeds are not portable across implementations
- Visible diagonal bias in some 2D implementations that skew incorrectly
- Sharp falloff kernel makes derivatives noisier than quintic Perlin when used for normals
- Output range differs per dimension and per library, so scale constants copied between codebases are wrong

## Engine support

- babylonjs: builtin — `SimplexPerlin3DBlock in Node Material Editor` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Materials/Node/Blocks/simplexPerlin3DBlock.ts, checked 2026-12-01)
- blender: builtin — `Shader / Geometry Nodes > Noise Texture (multi-dimensional FBM gradient noise)` (evidence: https://docs.blender.org/manual/en/5.2/render/shader_nodes/textures/noise.html, checked 2026-12-01)
- godot: builtin — `FastNoiseLite.noise_type = FastNoiseLite.TYPE_SIMPLEX` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/modules/noise/doc_classes/FastNoiseLite.xml, checked 2026-12-01)
- threejs: official — `import { SimplexNoise } from 'three/addons/math/SimplexNoise.js'` (evidence: https://github.com/mrdoob/three.js/blob/r187/examples/jsm/math/SimplexNoise.js, checked 2026-12-01)
- unity: official — `Package Manager > Mathematics > noise.snoise` (evidence: https://github.com/Unity-Technologies/Unity.Mathematics/blob/master/src/Unity.Mathematics/Noise/noise3D.cs, checked 2026-12-01) — Unity.Mathematics simplex noise (Gustavson/McEwan).
- unreal: builtin — `Material Noise expression > Function = Simplex (texture based)` (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, volume-density
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, cpu, unity, unreal, godot, python

## Presets

### 2D simplex noise over its skewed triangular lattice (glsl-fragment; rendered 2026-11-29)

```json
{
  "SCALE": 5
}
```

```glsl
// 2D simplex noise: skewed triangular lattice (white lines) with three radially-attenuated gradient contributions per triangle.
const float SCALE = 5.0;
vec2 grad(vec2 i) {
    float a = 6.2831853 * fract(sin(dot(i, vec2(127.1, 311.7))) * 43758.5453);
    return vec2(cos(a), sin(a));
}
float simplex(vec2 v) {
    const float F = 0.3660254, G = 0.2113249;
    vec2 i = floor(v + (v.x + v.y) * F);
    vec2 x0 = v - i + (i.x + i.y) * G;
    vec2 o = x0.x > x0.y ? vec2(1, 0) : vec2(0, 1);
    vec2 x1 = x0 - o + G, x2 = x0 - 1.0 + 2.0 * G;
    float n = 0.0;
    float t0 = max(0.5 - dot(x0, x0), 0.0); n += t0 * t0 * t0 * t0 * dot(grad(i), x0);
    float t1 = max(0.5 - dot(x1, x1), 0.0); n += t1 * t1 * t1 * t1 * dot(grad(i + o), x1);
    float t2 = max(0.5 - dot(x2, x2), 0.0); n += t2 * t2 * t2 * t2 * dot(grad(i + 1.0), x2);
    return 70.0 * n;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 uv = fragCoord / iResolution.xy;
    vec2 p = uv * SCALE;
    float n = simplex(p) * 0.5 + 0.5;
    float n2 = simplex(p * 2.0 + 7.0) * 0.5 + 0.5;
    float h = 0.7 * n + 0.3 * n2;
    vec3 col = 0.5 + 0.5 * cos(6.2831 * (h * 1.1 + vec3(0.0, 0.1, 0.2)));
    col *= 0.7 + 0.3 * smoothstep(0.0, 0.5, abs(fract(h * 10.0) - 0.5));
    vec2 s = p + (p.x + p.y) * 0.3660254;
    vec2 f = fract(s);
    float edge = min(min(f.x, 1.0 - f.x), min(min(f.y, 1.0 - f.y), abs(f.x + f.y - 1.0) * 0.7071));
    col = mix(col, vec3(1.0), smoothstep(0.02, 0.008, edge) * 0.8);
    fragColor = vec4(pow(col, vec3(0.8)), 1.0);
}

```

Attribution: written for this index

## Lineage

- extends [Perlin Noise (gradient lattice noise)](https://texelatlas.vercel.app/t/perlin-noise.md)

## Sources

1. [primary] Stefan Gustavson Simplex noise demystified. weber.itn.liu.se. https://weber.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf (verified via wayback on 2026-11-29)
2. [primary] Ian McEwan, David Sheets, Mark Richardson, Stefan Gustavson (2012) Efficient Computational Noise in GLSL. Journal of Graphics Tools. https://doi.org/10.1080/2151237x.2012.649621 (verified via crossref on 2026-11-29)
3. [implementation] stegu (2016) stegu/webgl-noise. https://github.com/stegu/webgl-noise License: MIT. (verified via github on 2026-11-29)
4. [implementation] jwagner (2012) jwagner/simplex-noise.js. https://github.com/jwagner/simplex-noise.js License: MIT. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Simplex Noise." https://texelatlas.vercel.app/t/simplex-noise/ (accessed 2026-12-01).
