{
 "id": "kulla-conty-multiscatter",
 "title": "Kulla-Conty multiple-scattering compensation",
 "aliases": [],
 "domain": "materials",
 "subdomain": "microfacet BRDF",
 "stage": "material",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "mobile-gpu",
  "unity",
  "unreal",
  "godot",
  "blender"
 ],
 "year_introduced": 2017,
 "inputs": [
  "material-params",
  "normals"
 ],
 "outputs": [
  "radiance"
 ],
 "style": "photoreal",
 "dynamic": "both",
 "summary": "Adds back the energy a single-scattering GGX lobe loses on rough surfaces, using a precomputed directional-albedo table and a cheap multiplicative lobe. Rough metals stop looking too dark, with almost no runtime cost.",
 "how_it_works": "Single-scatter microfacet models ignore light that bounces more than once between facets, so albedo drops as roughness rises, up to tens of percent for rough conductors. Kulla and Conty precompute the directional albedo E(mu, roughness) of the single-scatter lobe and its cosine-weighted average E_avg(roughness) into a small 2D/1D LUT. The missing energy is 1 - E(mu); a compensation lobe is shaped like a diffuse-ish BRDF f_ms = (1-E(mu_o))(1-E(mu_i)) / (pi (1 - E_avg)) and tinted by an average Fresnel term that accounts for colour shifts from repeated reflections on coloured metals. A variant for image-based lighting simply scales the split-sum specular by a factor derived from the same LUT (Fdez-Aguera 2019). Result: energy conserving and white-furnace-test friendly.",
 "when_to_use": "Choose it whenever you shade GGX in a real-time or production renderer and rough metals or high-roughness dielectrics look dark; it is cheap and almost always a win. Prefer the full stochastic multiple-scattering evaluation of Heitz et al. only in offline path tracers. Combine it with `disney-principled-brdf` or `openpbr-surface` models whose specular is single-scatter.",
 "cost": {
  "class": "cheap",
  "notes": "One extra LUT fetch and a few multiplies per shaded pixel; IBL variant reuses the split-sum BRDF LUT."
 },
 "failure_modes": [
  "LUT resolution and parameterization errors cause banding in roughness or a visible seam at the metal/dielectric boundary",
  "Fresnel tint approximation is wrong for strongly coloured conductors with sharp spectral edges",
  "Compensation lobe is diffuse-like, so the highlight shape of true multiple scattering (slightly wider) is not reproduced",
  "Must be applied consistently to direct lights and IBL or the two disagree"
 ],
 "sources": [
  {
   "role": "talk",
   "key": "url:https://blog.selfshadow.com/publications/s2017-shading-course/imageworks/s2017_pbs_imageworks_slides.pdf",
   "type": "talk",
   "title": "Revisiting Physically Based Shading at Imageworks",
   "authors": [
    "Christopher Kulla",
    "Alejandro Conty"
   ],
   "year": null,
   "venue": "SIGGRAPH 2017 Course",
   "url": "https://blog.selfshadow.com/publications/s2017-shading-course/imageworks/s2017_pbs_imageworks_slides.pdf",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20260718105623/https://blog.selfshadow.com/publications/s2017-shading-course/imageworks/s2017_pbs_imageworks_slides.pdf",
     "timestamp": "20260718105623"
    },
    "page_title": null,
    "host": "blog.selfshadow.com",
    "title_confirmed_by_page": false,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://blog.selfshadow.com/publications/s2017-shading-course/imageworks/s2017_pbs_imageworks_slides.pdf → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "kullarevisiting"
  },
  {
   "role": "primary",
   "key": "doi:10.1145/2897824.2925943",
   "type": "paper",
   "title": "Multiple-scattering microfacet BSDFs with the Smith model",
   "authors": [
    "Eric Heitz",
    "Johannes Hanika",
    "Eugene d'Eon",
    "Carsten Dachsbacher"
   ],
   "year": 2016,
   "venue": "ACM Transactions on Graphics",
   "url": "https://doi.org/10.1145/2897824.2925943",
   "ids": {
    "doi": "10.1145/2897824.2925943"
   },
   "license": null,
   "extra": {
    "csl_type": "journal-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2897824.2925943",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2897824.2925943",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2897824.2925943",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2897824.2925943",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/2897824.2925943",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "heitz2016multiple"
  },
  {
   "role": "primary",
   "key": "url:https://jcgt.org/published/0008/01/03",
   "type": "web",
   "title": "A Multiple-scattering Microfacet Model for Real-time Image-based Lighting",
   "authors": [
    "Carmelo J. Fdez-Aguera"
   ],
   "year": null,
   "venue": "JCGT 2019",
   "url": "https://jcgt.org/published/0008/01/03",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20260206215236/https://jcgt.org/published/0008/01/03/",
     "timestamp": "20260206215236"
    },
    "page_title": null,
    "host": "jcgt.org",
    "title_confirmed_by_page": false,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://jcgt.org/published/0008/01/03 → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "fdezagueramultiple"
  }
 ],
 "presets": [
  {
   "id": "kulla-conty-multiscatter-specimen",
   "title": "White furnace test: single-scatter GGX (top) vs multiscatter-compensated (bottom)",
   "runtime": "glsl-fragment",
   "params": {
    "BG": 0.55
   },
   "code": "// White-furnace test (uniform environment, radiance 0.55) of gold GGX spheres, roughness 0.35 / 0.65 / 1.0.\n// Top row: single-scattering GGX loses energy as roughness rises. Bottom row: Kulla-Conty style\n// compensation (1 + F0 (1/E - 1)) with E(mu) integrated in-shader.\nconst vec3 F0 = vec3(1.0, 0.77, 0.34);\nconst float BG = 0.55;\n\nfloat radical(int i) { float f = 0.5, r = 0.0; for (int b = 0; b < 6; b++) { r += f * float(i & 1); i >>= 1; f *= 0.5; } return r; }\nfloat g1(float n, float a) { return 2.0 * n / (n + sqrt(a * a + (1.0 - a * a) * n * n)); }\nfloat dirAlbedo(float mu, float rough) {\n  float a = rough * rough; vec3 V = vec3(sqrt(1.0 - mu * mu), 0.0, mu); float sum = 0.0;\n  for (int i = 0; i < 64; i++) {\n    float u1 = (float(i) + 0.5) / 64.0, u2 = radical(i);\n    float phi = 6.2832 * u1, ct = sqrt((1.0 - u2) / (1.0 + (a * a - 1.0) * u2)), st = sqrt(1.0 - ct * ct);\n    vec3 H = vec3(st * cos(phi), st * sin(phi), ct); vec3 L = 2.0 * dot(V, H) * H - V;\n    if (L.z > 0.0 && dot(V, H) > 0.0) sum += g1(L.z, a) * g1(mu, a) * dot(V, H) / (ct * mu);\n  }\n  return sum / 64.0;\n}\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  vec3 ro = vec3(0.0, 0.0, 4.0), rd = normalize(vec3(uv, -1.7));\n  vec3 col = vec3(BG);\n  for (int j = 0; j < 2; j++) for (int i = 0; i < 3; i++) {\n    vec3 c = vec3((float(i) - 1.0) * 0.62, j == 0 ? 0.3 : -0.3, 0.0);\n    vec3 oc = ro - c; float b = dot(oc, rd); float h = b * b - dot(oc, oc) + 0.27 * 0.27;\n    if (h < 0.0) continue;\n    float t = -b - sqrt(h); if (t < 0.0) continue;\n    vec3 n = normalize(ro + rd * t - c);\n    float mu = clamp(dot(n, -rd), 0.04, 1.0);\n    float E = dirAlbedo(mu, 0.35 + 0.325 * float(i));\n    vec3 lo = F0 * E;\n    if (j == 1) lo *= 1.0 + F0 * (1.0 / E - 1.0);\n    col = lo * BG;\n  }\n  fragColor = vec4(pow(col, vec3(1.0 / 2.2)), 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": "kulla-conty-multiscatter",
     "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.7233,
      "std": 0.0778,
      "unique_colors": 28
     },
     "image": "/specimens/kulla-conty-multiscatter-specimen.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "ggx-trowbridge-reitz",
  "smith-masking-shadowing",
  "disney-principled-brdf",
  "frostbite-pbr"
 ],
 "extends": [
  "ggx-trowbridge-reitz"
 ],
 "supersedes": [],
 "combines_with": [
  {
   "id": "ggx-trowbridge-reitz",
   "why": "Consumes the single-scatter GGX albedo and returns the missing multi-bounce energy."
  }
 ],
 "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/kulla-conty-multiscatter.json"
 },
 "solves": [
  "rough metals look too dark",
  "high roughness specular loses energy",
  "ggx surfaces appear dimmer as roughness rises",
  "need cheap fix for lost multi-bounce energy in microfacets"
 ],
 "authority": "Heitz et al., 2016",
 "url": "https://texelatlas.vercel.app/t/kulla-conty-multiscatter/",
 "execution_fidelity": "faithful-pass",
 "fidelity_label": "Faithful Pass",
 "benchmark_eligible": true,
 "gpu_weight": {
  "weight_x": 17.5,
  "tier": "moderate",
  "p50_ms": 0.5758,
  "p95_ms": 0.5945,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 40,
  "preset_id": "kulla-conty-multiscatter-specimen",
  "execution_fidelity": "faithful-pass",
  "fidelity_label": "Faithful Pass",
  "benchmark_eligible": true,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 11.52,
   "tier": "moderate",
   "p50_ms": 0.1832,
   "p95_ms": 0.1861,
   "speedup_x": 3.14,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 11.45,
   "tier": "moderate",
   "p50_ms": 0.3299,
   "p95_ms": 0.3344,
   "speedup_x": 1.75,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}