{
 "id": "gaussian-shader-reflective-splats",
 "title": "GaussianShader: Reflective 3D Gaussian Splatting",
 "aliases": [
  "GaussianShader"
 ],
 "domain": "capture",
 "subdomain": "splatting",
 "stage": "capture",
 "realtime": "realtime",
 "platforms": [
  "cuda",
  "desktop-gpu",
  "webgl2"
 ],
 "year_introduced": 2023,
 "inputs": [
  "photos",
  "camera-poses",
  "gaussians"
 ],
 "outputs": [
  "gaussians",
  "normals",
  "hdr-image"
 ],
 "style": "photoreal",
 "dynamic": "static",
 "summary": "Equips 3D Gaussians with a simplified shading function—combining diffuse tint, roughness, a learned environment map, and a residual color term—to accurately reconstruct chrome, glass, and glossy surfaces.",
 "how_it_works": "Low-order spherical harmonics in vanilla 3DGS cannot capture sharp view-dependent reflections on glossy metals or car paint. GaussianShader predicts each Gaussian's shortest-axis normal (refined with a residual normal vector) and evaluates a differentiable environment cubemap lookup modulated by specular tint and roughness, plus a small residual SH term for inter-reflections. A normal consistency loss links shortest-axis normals to depth gradients, yielding sharp reflections at interactive frame rates.",
 "when_to_use": "Use when capturing glossy, metallic, or reflective objects (vehicles, ceramics, wet scenes) where standard 3DGS turns reflections into blurry floating clouds.",
 "cost": {
  "class": "medium",
  "notes": "Adds one mipmapped environment-map lookup per Gaussian; real-time playback on desktop GPUs."
 },
 "failure_modes": [
  "Distant environment map assumes far-field reflections and misses sharp near-field self-reflections",
  "Shortest-axis normal heuristic becomes ambiguous on nearly spherical Gaussians"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2311.17977",
   "type": "paper",
   "title": "GaussianShader: 3D Gaussian Splatting with Shading Functions for Reflective Surfaces",
   "authors": [
    "Yingwenqi Jiang",
    "Jiadong Tu",
    "Yuan Liu",
    "Xifeng Gao",
    "Xiaoxiao Long",
    "Wenping Wang",
    "Yuexin Ma"
   ],
   "year": 2023,
   "venue": "arXiv preprint",
   "url": "https://arxiv.org/abs/2311.17977",
   "ids": {
    "arxiv": "2311.17977",
    "doi": "10.48550/arxiv.2311.17977"
   },
   "license": null,
   "provenance": {
    "title": {
     "authority": "datacite-arxiv",
     "endpoint": "https://api.datacite.org/dois/10.48550/arxiv.2311.17977",
     "checked_at": "2026-12-02T02:40:24.869Z"
    },
    "authors": {
     "authority": "datacite-arxiv",
     "endpoint": "https://api.datacite.org/dois/10.48550/arxiv.2311.17977",
     "checked_at": "2026-12-02T02:40:24.869Z"
    },
    "year": {
     "authority": "datacite-arxiv",
     "endpoint": "https://api.datacite.org/dois/10.48550/arxiv.2311.17977",
     "checked_at": "2026-12-02T02:40:24.869Z"
    },
    "venue": {
     "authority": "datacite-arxiv",
     "endpoint": "https://api.datacite.org/dois/10.48550/arxiv.2311.17977",
     "checked_at": "2026-12-02T02:40:24.869Z"
    },
    "url": {
     "authority": "datacite-arxiv",
     "endpoint": "https://api.datacite.org/dois/10.48550/arxiv.2311.17977",
     "checked_at": "2026-12-02T02:40:24.869Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-12-02T02:40:24.869Z",
   "title_sim": 1,
   "__bib": "jiang2023gaussianshader"
  }
 ],
 "presets": [
  {
   "id": "gaussian-shader-reflective-splats-live",
   "title": "GaussianShader — diffuse-only (left) vs reflective residual environment shading (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_ROUGH": 0.18,
    "P_RESIDUAL": 0.85,
    "P_SPLIT": 0.5
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_ROUGH = 0.18; // P Specular Roughness [0.04, 0.70, 0.02]\nconst float P_RESIDUAL = 0.85; // P Residual Specular Gain [0.0, 1.5, 0.05]\nconst float P_SPLIT = 0.50; // P Diffuse / GaussianShader [0.0, 1.0, 0.02]\n\nvec3 envSample(vec3 r) {\n  float h = clamp(r.y * 0.5 + 0.5, 0.0, 1.0);\n  vec3 sky = mix(vec3(0.10, 0.14, 0.24), vec3(0.55, 0.72, 0.95), pow(h, 0.7));\n  float sun = pow(max(dot(r, normalize(vec3(0.55, 0.68, 0.48))), 0.0), 64.0);\n  float rim = pow(max(dot(r, normalize(vec3(-0.75, 0.25, -0.45))), 0.0), 24.0);\n  return sky + vec3(3.2, 2.5, 1.8) * sun + vec3(0.45, 0.85, 1.25) * rim;\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  float sx = fragCoord.x / max(iResolution.x, 1.0);\n  vec3 ro = vec3(0.0, 0.0, 2.6);\n  vec3 rd = normalize(vec3(uv, -1.6));\n  float b = dot(ro, rd);\n  float c = dot(ro, ro) - 0.78 * 0.78;\n  float disc = b * b - c;\n  vec3 col = envSample(rd) * 0.45;\n  if (disc > 0.0) {\n    float t = -b - sqrt(disc);\n    vec3 p = ro + rd * t;\n    vec3 n = normalize(p);\n    // Perturb with anisotropic splat micro-normal ripples\n    float a = iTime * 0.6;\n    vec3 pn = normalize(n + 0.06 * vec3(sin(p.y * 14.0 + a), cos(p.x * 14.0 - a), 0.0));\n    vec3 v = -rd;\n    vec3 r = reflect(-v, pn);\n    float ndv = max(dot(pn, v), 0.0);\n    float F = 0.04 + 0.96 * pow(1.0 - ndv, 5.0);\n    vec3 diffuse = vec3(0.18, 0.22, 0.28) * (0.35 + 0.65 * max(dot(pn, normalize(vec3(0.55, 0.68, 0.48))), 0.0));\n    vec3 envSpec = mix(envSample(r), envSample(pn), P_ROUGH * P_ROUGH) * F * P_RESIDUAL;\n    col = (sx < P_SPLIT) ? diffuse : (diffuse * (1.0 - F * 0.6) + envSpec);\n  }\n  float sep = smoothstep(0.0035, 0.001, abs(sx - P_SPLIT));\n  col = mix(col, vec3(0.95), sep);\n  col = (col * (2.51 * col + 0.03)) / (col * (2.43 * col + 0.59) + 0.14);\n  fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-12-02",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "gaussian-shader-reflective-splats",
     "runtime": "glsl-fragment",
     "checked_at": "2026-12-02T02:47:18.218Z",
     "execution_fidelity": "conceptual-diagram",
     "benchmark_eligible": false,
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime∈{0.0,1.5,4.0}",
     "stats": {
      "mean": 0.5024,
      "std": 0.1105,
      "unique_colors": 79,
      "nan_pixels": 0,
      "animated": true,
      "anim_delta": 0.0104
     },
     "image": "/specimens/gaussian-shader-reflective-splats-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "gaussian-splatting-3dgs",
  "relightable-3d-gaussian",
  "environment-mapping-cubemaps"
 ],
 "extends": [
  "gaussian-splatting-3dgs"
 ],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (frontier expansion, authority-verified)",
  "sources_verified_at": "2026-12-02T02:40:24.869Z"
 },
 "solves": [],
 "authority": "Jiang et al., 2023",
 "url": "https://texelatlas.vercel.app/t/gaussian-shader-reflective-splats/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false
}