03
Glow and glass
Bloom is earned, glass is additive
The scene renders into a half float target, a bright pass keeps only luminance above the threshold, three blur levels at half, quarter and eighth resolution, then an ACES composite with a film grade: lens falloff, a trace of fringing and fine grain so dark gradients never band. Only M3 Emissive crosses the threshold.
// one call per page
const grade = createGrade(renderer, {
threshold: 0.7, // luminance gate
strength: 0.72, // bloom gain
vignette: 0.42, // lens falloff
fringe: 0.012, // colour fringing at the edges
grain: 0.022 // kills banding in the dark
});
renderer.toneMapping = THREE.ACESFilmicToneMapping;
// holo glass uniforms
holoGlass({ color: PALETTE.cyan, rim: PALETTE.chalk,
opacity: 0.55, scan: 1.0 });
// fresnel f = pow(1 - |N·V|, 2.2)
// rgb = mix(color * .35, rim, f) * scanline
| Rule | Value |
| Bloom threshold | 0.7 luminance |
| Bloom passes | 3 levels, 9 taps |
| Grade | Falloff 0.42, fringe 0.012, grain 0.022 |
| Glass blending | Additive, depth write off |
| Glass stacking | Max 3 layers on screen |
| Emissive cap | 3.6, no NaN, clamp 24 |
| Mobile | Pixel ratio 1.5, same passes |