fix(intro): punch exposure on impacts instead of adding a grey veil

Additive flashes lifted the blacks to visible grey after gamma; scale the
exposure instead so only lit pixels brighten. Also drop the scratch GL test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KqP857pippaUs6konSDfe8
This commit is contained in:
Claude committed 2026-10-18 03:37:49 +00:00
1 parent c9421a3f33
commit e9ddc37788
1 file changed
+2 -2
+2 -2
View File
@@ -148,8 +148,8 @@ export function createPost(renderer, W, H, hudCanvas) {
bl.g = texture2D(tBloom, uv).g;
bl.b = texture2D(tBloom, uv - ab * 1.5).b;
col += bl * uBloom;
col *= uExposure;
col += vec3(0.75, 0.95, 1.0) * uFlash;
// flashes punch exposure instead of adding a veil, so blacks stay black
col *= uExposure * (1.0 + uFlash * 6.0);
col = aces(col);
// vignette
float vig = smoothstep(0.95, 0.18, length(d * vec2(uRes.x / uRes.y, 1.0) * 0.82));