Procedural noise for texturing
Generate texture detail from functions instead of images: value, gradient, Worley and sparse-convolution noises, summed as fBm or warped, evaluated per pixel with infinite resolution and no memory. Lagae et al. survey the families and their trade-offs.
In the family Materials, BRDFs & texturing, procedural texturing
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Built in | import { mx_noise_float, mx_fractal_noise_float } from 'three/tsl' docs TSL noise nodes. |
| Babylon.js 9.38.0 | Built in | new BABYLON.NoiseProceduralTexture(...) and Node Material SimplexPerlin3DBlock / WorleyNoise3DBlock / CloudBlock docs |
| Godot 4.7 | Built in | NoiseTexture2D.noise = FastNoiseLite docs |
| Unity | Built in | Shader Graph > Simple Noise / Gradient Noise / Voronoi nodes docs Shader Graph noise nodes. |
| Unreal 5.7 | Built in | Material graph: Noise and VectorNoise expressions (Simplex, Gradient, Voronoi) docs |
| Blender 5.2 | Built in | Shader Editor > Add > Texture > Noise Texture docs |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
A noise function is a smooth, band-limited pseudo-random scalar field. Lattice noises (value, gradient/Perlin, simplex) interpolate hashed values or gradients at integer grid points. Sparse-convolution noises (sparse Gabor, anisotropic kernels) scatter kernels at random points and allow controlled spectrum and anisotropy. Cellular (Worley) noise measures distance to the nearest feature points. Layering octaves with doubling frequency and halving amplitude (fBm) gives natural spectra; domain warping, ridged or turbulence forms and colour ramps convert them into marble, wood, clouds or rust. A shader evaluates them per pixel in object or world space, avoiding UVs entirely, and can be filtered analytically by fading high octaves with pixel footprint.
When to choose it
Reach for it when
- need endless unique textures with no tiling
- make clouds, marble or terrain from code
- textures too repetitive and memory heavy
- organic randomness for materials and heightmaps
Choose it for tileless, resolution-independent surface variation, masks, roughness breakup and layering variation over image textures. Prefer Histogram-preserving blending (stochastic texturing) or Image quilting when you must reproduce a specific photographic exemplar. Prefer Weathering simulation (weathered stone) when wear should follow geometry and exposure instead of random fields. Use blue-noise methods for sampling patterns, not for texture patterns.
Field marks
- Visible grid alignment and axis-aligned artefacts in value and cheap Perlin noise
- Hash functions with poor precision band or repeat at large coordinates, particularly on mobile (float precision)
- Aliasing and shimmer when octaves above Nyquist are not faded out
- Looks 'procedural' and uniform without masks or warping
Presets
Domain-warped fBm marble
{
"OCTAVES": 6,
"FREQ": 3,
"WARP": 1.6,
"VEIN": 6
}Show GLSL (39 lines)
// GLSL ES 3.0, Shadertoy-style: marble-like turbulence from fBm value noise
const int OCTAVES = 6;
const float FREQ = 3.0;
const float WARP = 1.6;
const float VEIN = 6.0;
float hash(vec2 p) {
p = fract(p * vec2(123.34, 456.21));
p += dot(p, p + 45.32);
return fract(p.x * p.y);
}
float vnoise(vec2 p) {
vec2 i = floor(p), f = fract(p);
f = f * f * (3.0 - 2.0 * f);
float a = hash(i), b = hash(i + vec2(1.0, 0.0));
float c = hash(i + vec2(0.0, 1.0)), d = hash(i + vec2(1.0, 1.0));
return mix(mix(a, b, f.x), mix(c, d, f.x), f.y);
}
float fbm(vec2 p) {
float s = 0.0, a = 0.5;
for (int i = 0; i < OCTAVES; i++) {
s += a * vnoise(p);
p = p * 2.03 + vec2(17.1, 9.2);
a *= 0.5;
}
return s;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = fragCoord / iResolution.xy;
vec2 p = uv * FREQ;
float w = fbm(p + 0.15 * iTime);
float t = fbm(p + WARP * vec2(w, fbm(p + 3.7)));
float vein = abs(sin((uv.x * 2.0 + t * VEIN) * 3.14159));
vein = pow(1.0 - vein, 6.0);
vec3 stone = mix(vec3(0.80, 0.78, 0.74), vec3(0.93, 0.92, 0.90), t);
vec3 col = mix(stone, vec3(0.18, 0.20, 0.24), vein * 0.8);
fragColor = vec4(col, 1.0);
}
Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| procedural-marble-fbm | Tesla T4 1920x1080 | 24.9× baseline (heavy) · 0.820 ms / 0.858 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| procedural-marble-fbm | NVIDIA L4 1920x1080 | 21.1× baseline (heavy) · 0.335 ms / 0.338 ms · 2.5× faster on L4 | opengl-timer-query · Cross-architecture validation |
| procedural-marble-fbm | NVIDIA A100-SXM4-40GB 1920x1080 | 16.5× baseline (moderate) · 0.476 ms / 0.476 ms · 1.7× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): cited by Film grain synthesis.
Sources
- primaryA. Lagae, S. Lefebvre, R. Cook, T. DeRose, G. Drettakis, D.S. Ebert et al. (2010). A Survey of Procedural Noise Functions. Computer Graphics Forum.Verified via crossref · 2026-11-29doi:10.1111/j.1467-8659.2010.01827.x