{
 "id": "procedural-noise-texturing",
 "title": "Procedural noise for texturing",
 "aliases": [],
 "domain": "materials",
 "subdomain": "procedural texturing",
 "stage": "material",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "mobile-gpu",
  "blender",
  "houdini",
  "unity",
  "unreal",
  "godot"
 ],
 "year_introduced": 2010,
 "inputs": [
  "uv-atlas"
 ],
 "outputs": [
  "texture",
  "material-params"
 ],
 "style": "both",
 "dynamic": "both",
 "summary": "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.",
 "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_use": "Choose it for tileless, resolution-independent surface variation, masks, roughness breakup and layering variation over image textures. Prefer `histogram-preserving-blending` or `image-quilting` when you must reproduce a specific photographic exemplar. Prefer `weathering-simulation` when wear should follow geometry and exposure instead of random fields. Use blue-noise methods for sampling patterns, not for texture patterns.",
 "cost": {
  "class": "cheap",
  "notes": "A few hashed lookups per octave; cost scales linearly with octave count."
 },
 "failure_modes": [
  "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"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1111/j.1467-8659.2010.01827.x",
   "type": "paper",
   "title": "A Survey of Procedural Noise Functions",
   "authors": [
    "A. Lagae",
    "S. Lefebvre",
    "R. Cook",
    "T. DeRose",
    "G. Drettakis",
    "D.S. Ebert",
    "J.P. Lewis",
    "K. Perlin",
    "M. Zwicker"
   ],
   "year": 2010,
   "venue": "Computer Graphics Forum",
   "url": "https://doi.org/10.1111/j.1467-8659.2010.01827.x",
   "ids": {
    "doi": "10.1111/j.1467-8659.2010.01827.x"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/j.1467-8659.2010.01827.x",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/j.1467-8659.2010.01827.x",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/j.1467-8659.2010.01827.x",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/j.1467-8659.2010.01827.x",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1111/j.1467-8659.2010.01827.x",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "lagae2010survey"
  }
 ],
 "presets": [
  {
   "id": "procedural-marble-fbm",
   "title": "Domain-warped fBm marble",
   "runtime": "glsl-fragment",
   "params": {
    "OCTAVES": 6,
    "FREQ": 3,
    "WARP": 1.6,
    "VEIN": 6
   },
   "code": "// GLSL ES 3.0, Shadertoy-style: marble-like turbulence from fBm value noise\nconst int   OCTAVES = 6;\nconst float FREQ = 3.0;\nconst float WARP = 1.6;\nconst float VEIN = 6.0;\n\nfloat hash(vec2 p) {\n  p = fract(p * vec2(123.34, 456.21));\n  p += dot(p, p + 45.32);\n  return fract(p.x * p.y);\n}\nfloat vnoise(vec2 p) {\n  vec2 i = floor(p), f = fract(p);\n  f = f * f * (3.0 - 2.0 * f);\n  float a = hash(i), b = hash(i + vec2(1.0, 0.0));\n  float c = hash(i + vec2(0.0, 1.0)), d = hash(i + vec2(1.0, 1.0));\n  return mix(mix(a, b, f.x), mix(c, d, f.x), f.y);\n}\nfloat fbm(vec2 p) {\n  float s = 0.0, a = 0.5;\n  for (int i = 0; i < OCTAVES; i++) {\n    s += a * vnoise(p);\n    p = p * 2.03 + vec2(17.1, 9.2);\n    a *= 0.5;\n  }\n  return s;\n}\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = fragCoord / iResolution.xy;\n  vec2 p = uv * FREQ;\n  float w = fbm(p + 0.15 * iTime);\n  float t = fbm(p + WARP * vec2(w, fbm(p + 3.7)));\n  float vein = abs(sin((uv.x * 2.0 + t * VEIN) * 3.14159));\n  vein = pow(1.0 - vein, 6.0);\n  vec3 stone = mix(vec3(0.80, 0.78, 0.74), vec3(0.93, 0.92, 0.90), t);\n  vec3 col = mix(stone, vec3(0.18, 0.20, 0.24), vein * 0.8);\n  fragColor = vec4(col, 1.0);\n}\n",
   "basis": "original",
   "license_note": "written for this index",
   "execution_fidelity": "faithful-pass",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-29",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "procedural-noise-texturing",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-29T15:51:50.471Z",
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.7931,
      "std": 0.1052,
      "unique_colors": 61
     },
     "image": "/specimens/procedural-marble-fbm.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "histogram-preserving-blending",
  "image-quilting",
  "weathering-simulation"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/materials/procedural-noise-texturing.json"
 },
 "solves": [
  "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"
 ],
 "authority": "Lagae et al., 2010",
 "url": "https://texelatlas.vercel.app/t/procedural-noise-texturing/",
 "execution_fidelity": "faithful-pass",
 "fidelity_label": "Faithful Pass",
 "benchmark_eligible": true,
 "gpu_weight": {
  "weight_x": 24.91,
  "tier": "heavy",
  "p50_ms": 0.8197,
  "p95_ms": 0.858,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 40,
  "preset_id": "procedural-marble-fbm",
  "execution_fidelity": "faithful-pass",
  "fidelity_label": "Faithful Pass",
  "benchmark_eligible": true,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 21.06,
   "tier": "heavy",
   "p50_ms": 0.3348,
   "p95_ms": 0.3379,
   "speedup_x": 2.45,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 16.54,
   "tier": "moderate",
   "p50_ms": 0.4763,
   "p95_ms": 0.4763,
   "speedup_x": 1.72,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}