---
id: "improved-perlin-noise"
title: "Improved Perlin Noise"
aliases: [Perlin 2002]
domain: "procgen"
stage: "procedural"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, cpu, blender, unity, unreal, godot, python]
year_introduced: 2002
outputs: [texture, heightfield, volume-density]
style: "both"
dynamic: "both"
cost: "cheap"
authority: "Perlin, 2002"
url: "https://texelatlas.vercel.app/t/improved-perlin-noise/"
sources_verified_at: "2026-11-29"
---
# Improved Perlin Noise (Perlin, 2002)

> Perlin's revision of gradient noise: a quintic fade curve with continuous second derivative and gradients drawn from the 12 cube-edge directions, removing the creases and directional bias of the 1985 version.

## Reach for it when

- noise shows creases or axis-aligned artifacts
- need smooth derivatives for lighting or bump
- noise gradient has visible discontinuities
- want analytic slope for erosion terrain

## How it works

Structure is the same as classic gradient noise (hash lattice corners, dot offset with gradient, interpolate), with two changes. First, the interpolation weight becomes the quintic 6t^5-15t^4+10t^3, whose first and second derivatives vanish at cell boundaries, so the field is C2 continuous and its analytic derivatives have no seams. Second, instead of random unit vectors the gradient set is limited to the twelve vectors from the cube centre to edge midpoints, selected with a few bit operations from the hash. This avoids long axis-aligned gradients that caused visible streaks and makes the gradient dot product a sum of at most two terms. The reference Java code is a short permutation-table implementation that is trivially ported to shaders, usually replacing the table with an arithmetic hash.

## When to use it

Choose it as the default gradient noise whenever you light, bump or differentiate the result, or when you need analytic derivatives for erosion-style terrain. Prefer [Simplex Noise](https://texelatlas.vercel.app/t/simplex-noise.md) when you need 4D or want cheaper high-dimensional evaluation, and [Perlin Noise (gradient lattice noise)](https://texelatlas.vercel.app/t/perlin-noise.md) only when reproducing legacy 1985 output exactly. If you need cell structure rather than smooth blobs use [Worley (Cellular) Noise](https://texelatlas.vercel.app/t/worley-noise.md).

## Cost

cheap — Slightly more arithmetic than the 1985 fade, same lookup count; negligible per-octave cost on GPU.
Measured GPU Weight: 9.17× baseline (moderate) — 0.3016 ms median / 0.3188 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 8.98× baseline (moderate) — 0.1428 ms median (2.11× faster on L4).
Ampere A100 scaling: 6.81× baseline (moderate) — 0.196 ms median (1.54× faster on A100).

## Failure modes

- Still lattice-aligned at low frequency, producing faint grid-oriented banding that fBm with rotated octaves hides but does not remove
- Integer-hash quality matters: weak hashes show repeating patterns or correlated rows far from the origin
- Float precision loss at large coordinates makes the noise collapse into stripes or blocks
- Not tileable without wrapping the lattice hash, a common surprise when baking seamless textures

## Engine support

- babylonjs: official — `@babylonjs/procedural-textures PerlinNoiseProceduralTexture (and core NoiseProceduralTexture perlinNoise2D)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/proceduralTextures/src/perlinNoise/perlinNoiseProceduralTexture.ts, checked 2026-12-01)
- blender: builtin — `Shader / Geometry node: Noise Texture (Perlin / Multifractal / fBM)` (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_PERLIN` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/modules/noise/doc_classes/FastNoiseLite.xml, checked 2026-12-01)
- threejs: official — `import { ImprovedNoise } from 'three/addons/math/ImprovedNoise.js'` (evidence: https://github.com/mrdoob/three.js/blob/r187/examples/jsm/math/ImprovedNoise.js, checked 2026-12-01)
- unity: official — `Package Manager > Mathematics > noise.cnoise / noise.pnoise` (evidence: https://github.com/Unity-Technologies/Unity.Mathematics/blob/master/src/Unity.Mathematics/Noise/classicnoise3D.cs, checked 2026-12-01) — Unity.Mathematics classic Perlin noise (Gustavson).
- unreal: builtin — `Material graph: Noise expression > Function = Gradient / Perlin (NoiseFunction)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/class/NoiseFunction, checked 2026-12-01)

## Dataflow

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

## Presets

### Lit gradient noise: cubic fade creases (left) vs improved quintic fade (right) (glsl-fragment; rendered 2026-11-29)

```json
{
  "SCALE": 7
}
```

```glsl
// Gradient noise lit as a height field: left uses Perlin's old cubic fade (grid creases visible), right the improved quintic fade.
const float SCALE = 7.0;
vec2 grad(vec2 i) {
    // 8 edge-ish directions chosen by a lattice hash
    float h = fract(sin(dot(i, vec2(127.1, 311.7))) * 43758.5453);
    float a = floor(h * 8.0) * 0.7853982;
    return vec2(cos(a), sin(a));
}
float noise(vec2 p, bool quintic) {
    vec2 i = floor(p), f = fract(p);
    vec2 u = quintic ? f * f * f * (f * (f * 6.0 - 15.0) + 10.0) : f * f * (3.0 - 2.0 * f);
    float a = dot(grad(i), f);
    float b = dot(grad(i + vec2(1, 0)), f - vec2(1, 0));
    float c = dot(grad(i + vec2(0, 1)), f - vec2(0, 1));
    float d = dot(grad(i + vec2(1, 1)), f - vec2(1, 1));
    return mix(mix(a, b, u.x), mix(c, d, u.x), u.y);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 uv = fragCoord / iResolution.xy;
    bool q = uv.x > 0.5;
    vec2 p = uv * SCALE + vec2(iTime * 0.0);
    float e = 0.01;
    float h = noise(p, q);
    float hx = noise(p + vec2(e, 0), q) - noise(p - vec2(e, 0), q);
    float hy = noise(p + vec2(0, e), q) - noise(p - vec2(0, e), q);
    vec3 n = normalize(vec3(-hx * 12.0, -hy * 12.0, 1.0));
    float dif = max(dot(n, normalize(vec3(-0.5, 0.6, 0.7))), 0.0);
    float spec = pow(max(dot(reflect(-normalize(vec3(-0.5, 0.6, 0.7)), n), vec3(0, 0, 1)), 0.0), 24.0);
    vec3 col = mix(vec3(0.15, 0.2, 0.35), vec3(0.95, 0.8, 0.6), h * 1.2 + 0.5) * (0.25 + 0.8 * dif) + 0.3 * spec;
    col = mix(col, vec3(1.0), smoothstep(0.004, 0.0, abs(uv.x - 0.5)));
    fragColor = vec4(pow(col, vec3(0.8)), 1.0);
}

```

Attribution: written for this index

## Lineage

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

## Sources

1. [primary] Ken Perlin (2002) Improving noise. Proceedings of the 29th annual conference on Computer graphics and interactive techniques. https://doi.org/10.1145/566570.566636 (verified via crossref on 2026-11-29)
2. [tutorial] Patricio Gonzalez Vivo The Book of Shaders: Noise. thebookofshaders.com. https://thebookofshaders.com/11 (verified via http on 2026-11-29)
3. [tutorial] Inigo Quilez Gradient Noise - Derivatives. iquilezles.org. https://iquilezles.org/articles/gradientnoise (verified via http on 2026-11-29)

## Cite this entry

Texel. "Improved Perlin Noise." https://texelatlas.vercel.app/t/improved-perlin-noise/ (accessed 2026-12-01).
