---
id: "gaussian-shader-reflective-splats"
title: "GaussianShader: Reflective 3D Gaussian Splatting"
aliases: [GaussianShader]
domain: "capture"
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"
cost: "medium"
authority: "Jiang et al., 2023"
url: "https://texelatlas.vercel.app/t/gaussian-shader-reflective-splats/"
sources_verified_at: "2026-12-02"
---
# GaussianShader: Reflective 3D Gaussian Splatting (Jiang et al., 2023)

> 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 it

Use when capturing glossy, metallic, or reflective objects (vehicles, ceramics, wet scenes) where standard 3DGS turns reflections into blurry floating clouds.

## Cost

medium — 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

## Dataflow

- Inputs: photos, camera-poses, gaussians
- Outputs: gaussians, normals, hdr-image
- Platforms: cuda, desktop-gpu, webgl2

## Presets

### GaussianShader — diffuse-only (left) vs reflective residual environment shading (right) (glsl-fragment; rendered 2026-12-02)

```json
{
  "P_ROUGH": 0.18,
  "P_RESIDUAL": 0.85,
  "P_SPLIT": 0.5
}
```

```glsl
const float P_ROUGH = 0.18; // P Specular Roughness [0.04, 0.70, 0.02]
const float P_RESIDUAL = 0.85; // P Residual Specular Gain [0.0, 1.5, 0.05]
const float P_SPLIT = 0.50; // P Diffuse / GaussianShader [0.0, 1.0, 0.02]

vec3 envSample(vec3 r) {
  float h = clamp(r.y * 0.5 + 0.5, 0.0, 1.0);
  vec3 sky = mix(vec3(0.10, 0.14, 0.24), vec3(0.55, 0.72, 0.95), pow(h, 0.7));
  float sun = pow(max(dot(r, normalize(vec3(0.55, 0.68, 0.48))), 0.0), 64.0);
  float rim = pow(max(dot(r, normalize(vec3(-0.75, 0.25, -0.45))), 0.0), 24.0);
  return sky + vec3(3.2, 2.5, 1.8) * sun + vec3(0.45, 0.85, 1.25) * rim;
}

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
  float sx = fragCoord.x / max(iResolution.x, 1.0);
  vec3 ro = vec3(0.0, 0.0, 2.6);
  vec3 rd = normalize(vec3(uv, -1.6));
  float b = dot(ro, rd);
  float c = dot(ro, ro) - 0.78 * 0.78;
  float disc = b * b - c;
  vec3 col = envSample(rd) * 0.45;
  if (disc > 0.0) {
    float t = -b - sqrt(disc);
    vec3 p = ro + rd * t;
    vec3 n = normalize(p);
    // Perturb with anisotropic splat micro-normal ripples
    float a = iTime * 0.6;
    vec3 pn = normalize(n + 0.06 * vec3(sin(p.y * 14.0 + a), cos(p.x * 14.0 - a), 0.0));
    vec3 v = -rd;
    vec3 r = reflect(-v, pn);
    float ndv = max(dot(pn, v), 0.0);
    float F = 0.04 + 0.96 * pow(1.0 - ndv, 5.0);
    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));
    vec3 envSpec = mix(envSample(r), envSample(pn), P_ROUGH * P_ROUGH) * F * P_RESIDUAL;
    col = (sx < P_SPLIT) ? diffuse : (diffuse * (1.0 - F * 0.6) + envSpec);
  }
  float sep = smoothstep(0.0035, 0.001, abs(sx - P_SPLIT));
  col = mix(col, vec3(0.95), sep);
  col = (col * (2.51 * col + 0.03)) / (col * (2.43 * col + 0.59) + 0.14);
  fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}
```

Attribution: MIT — written for this index.

## Lineage

- extends [3D Gaussian Splatting](https://texelatlas.vercel.app/t/gaussian-splatting-3dgs.md)

## Sources

1. [primary] Yingwenqi Jiang, Jiadong Tu, Yuan Liu, Xifeng Gao, Xiaoxiao Long, Wenping Wang, Yuexin Ma (2023) GaussianShader: 3D Gaussian Splatting with Shading Functions for Reflective Surfaces. arXiv preprint. https://arxiv.org/abs/2311.17977 (verified via datacite-arxiv on 2026-12-02)

## Cite this entry

Texel. "GaussianShader: Reflective 3D Gaussian Splatting." https://texelatlas.vercel.app/t/gaussian-shader-reflective-splats/ (accessed 2026-12-02).
