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

> A smooth, band-limited pseudo-random scalar field built by placing random gradient vectors on an integer lattice and blending their dot products. The original building block for procedural textures and terrain.

## Reach for it when

- need a cheap smooth random field
- procedural clouds, marble or bump maps from noise
- random values look harsh and uncorrelated
- seedable repeatable noise for heightfields

## How it works

Space is divided into unit cells. Each lattice corner gets a pseudo-random gradient vector, chosen by hashing the integer coordinates through a permutation table, so the field is a pure function of position with no stored data. For a sample point you take the offset vector to each corner of its cell, dot it with that corner's gradient, and blend the results with a smooth interpolant. Because every corner contributes exactly zero at its own location, the field passes through zero at lattice points and has a characteristic feature size of about one cell, which makes it band-limited and a good octave for spectral synthesis. Original 1985 noise used a cubic Hermite blend (3t^2-2t^3), which leaves visible second-derivative discontinuities; that flaw is what the 2002 revision fixes. Cost scales as 2^n corners in n dimensions.

## When to use it

Choose it when you need a cheap, repeatable, seedable smooth field for clouds, marble, bump maps or heightfields, and axis-aligned artifacts are tolerable. Prefer [Improved Perlin Noise](https://texelatlas.vercel.app/t/improved-perlin-noise.md) for anything you will differentiate or use as a normal map, [Simplex Noise](https://texelatlas.vercel.app/t/simplex-noise.md) for 4D or higher dimensions or less grid bias, and [Worley (Cellular) Noise](https://texelatlas.vercel.app/t/worley-noise.md) when you want cell or crack structures rather than blobs.

## Cost

cheap — A handful of hash lookups and multiplies per octave; qualitative only. Dominated by octave count when summed as fBm.
Measured GPU Weight: 6.76× baseline (moderate) — 0.2225 ms median / 0.2354 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 6.09× baseline (moderate) — 0.0968 ms median (2.3× faster on L4).
Ampere A100 scaling: 4.17× baseline (light) — 0.1202 ms median (1.85× faster on A100).

## Failure modes

- Axis-aligned grid bias: features and zero-crossings line up with lattice axes, visible as faint squares at low frequency
- Cubic Hermite fade gives second-derivative discontinuities, visible as creases in bump-mapped or lit surfaces
- Output is zero at every integer lattice point, so unrotated stacked octaves reinforce the same lattice pattern
- Range is not exactly [-1,1]; real amplitude is smaller and varies by dimension, which breaks naive thresholding

## Engine support

- babylonjs: official — `new BABYLON.PerlinNoiseProceduralTexture('n', size, scene) from @babylonjs/procedural-textures` (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 Editor > Add > Texture > Noise Texture` (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: builtin — `Mathf.PerlinNoise(x, y)` (evidence: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Mathf.PerlinNoise.html, checked 2026-12-01) — 2D only; Unity.Mathematics adds 3D/4D.
- unreal: builtin — `Material Noise expression > Function = Gradient (texture based)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/utility-material-expressions-in-unreal-engine, checked 2026-12-01) — Gradient noise, formerly labeled Perlin.

## Dataflow

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

## Presets

### Classic Perlin gradient noise with lattice gradients shown, 3 octaves (glsl-fragment; rendered 2026-11-29)

```json
{
  "SCALE": 5,
  "OCTAVES": 3
}
```

```glsl
// Classic 2D Perlin gradient noise: lattice with random unit gradients (white ticks), value mapped to terrain-like colours, 3 octaves.
const float SCALE = 5.0;
const int OCTAVES = 3;
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 noise(vec2 p) {
    vec2 i = floor(p), f = fract(p), u = f * f * (3.0 - 2.0 * f);
    return mix(mix(dot(grad(i), f), dot(grad(i + vec2(1, 0)), f - vec2(1, 0)), u.x),
               mix(dot(grad(i + vec2(0, 1)), f - vec2(0, 1)), dot(grad(i + vec2(1, 1)), f - vec2(1, 1)), u.x), u.y);
}
float segd(vec2 p, vec2 a, vec2 b) {
    vec2 pa = p - a, ba = b - a;
    return length(pa - ba * clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0));
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 uv = fragCoord / iResolution.xy;
    vec2 p = uv * SCALE;
    float h = 0.0, amp = 0.5, fr = 1.0;
    for (int o = 0; o < OCTAVES; o++) { h += amp * noise(p * fr); amp *= 0.5; fr *= 2.0; }
    h = h * 1.6 + 0.5;
    vec3 col = h < 0.45 ? mix(vec3(0.05, 0.15, 0.4), vec3(0.2, 0.5, 0.7), h / 0.45)
             : h < 0.75 ? mix(vec3(0.25, 0.5, 0.2), vec3(0.6, 0.55, 0.3), (h - 0.45) / 0.3)
             : mix(vec3(0.5, 0.45, 0.4), vec3(1.0), clamp((h - 0.75) * 3.0, 0.0, 1.0));
    col *= 0.85 + 0.15 * sin(h * 60.0);
    // lattice and first-octave gradients
    vec2 id = floor(p + 0.5);
    float g = segd(p, id, id + grad(id) * 0.3);
    vec2 f = abs(fract(p) - 0.5);
    col = mix(col, vec3(0.0), smoothstep(0.02, 0.0, min(f.x, f.y) - 0.48) * 0.35);
    col = mix(col, vec3(1.0), smoothstep(0.02, 0.01, g));
    col = mix(col, vec3(1.0), smoothstep(0.06, 0.04, length(p - id)));
    fragColor = vec4(pow(col, vec3(0.8)), 1.0);
}

```

Attribution: written for this index

## Lineage

- extended by [Fractal Brownian Motion and Multifractals](https://texelatlas.vercel.app/t/fractal-brownian-motion.md)
- extended by [Simplex Noise](https://texelatlas.vercel.app/t/simplex-noise.md)
- superseded by [Improved Perlin Noise](https://texelatlas.vercel.app/t/improved-perlin-noise.md)

## Combines with

- [Fractal Brownian Motion and Multifractals](https://texelatlas.vercel.app/t/fractal-brownian-motion.md): Summing octaves of this noise yields the natural-looking spectrum fBm needs.

## Sources

1. [primary] Ken Perlin (1985) An image synthesizer. Proceedings of the 12th annual conference on Computer graphics and interactive techniques  - SIGGRAPH '85. https://doi.org/10.1145/325334.325247 (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. "Perlin Noise (gradient lattice noise)." https://texelatlas.vercel.app/t/perlin-noise/ (accessed 2026-12-01).
