Rust voxel sandbox (wgpu + wasm + axum multiplayer)
Find a file
Maximus Gorog d460891dbd Bug-fix: tame shafts / disc brightness so the scene doesn't blow out
The screenshot you sent shows the whole atmosphere whited-out with a
giant fuzzy sun blob. Root causes (with arithmetic, not hand-waving):

1. shafts EXPOSURE was 0.30. A pixel looking at the sun accumulates
   WEIGHT × Σ(DECAY^k) ≈ 0.78 × 9.92 ≈ 7.7 from the 16-sample radial
   blur. × 0.30 = 2.3 added to the scene additively, which then
   saturates through ACES tonemap and produces a giant white blob.
   Fix: EXPOSURE 0.30 → 0.08. A direct-at-sun pixel now gets ~0.6
   additive (clear glow without erasing underlying color).

2. Sun disc intensity was mix(2.2, 1.5, alt) — the disc itself was
   over 1.0 BEFORE the shafts added their contribution on top, so
   ACES could only clamp it to white. Fix: mix(1.4, 0.9, alt). Halo
   exponents trimmed to match.

3. Mask sun-cone was pow(dot, 8) — a fairly broad arc, so the
   shafts pass lit up too much of the sky. Tightening to pow(dot, 20)
   anchors rays to the actual sun direction.

Reverted: the fog `-view_dir` → `view_dir` change. I asserted that
was a bug without independent verification — keeping the original
direction until I can verify, per your "do not hallucinate" directive.
The washout was the shafts brightness, not the fog direction.

No features removed. Tests pass.
2026-05-24 16:03:40 -06:00
server pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
src Bug-fix: tame shafts / disc brightness so the scene doesn't blow out 2026-05-24 16:03:40 -06:00
test Tick/toc instrumentation across build + test + mesh phases 2026-05-24 11:49:08 -06:00
web Runtime perf: cheap fog, sky overdraw kill, fewer cloud octaves, in-game FPS HUD 2026-05-24 15:44:14 -06:00
.dockerignore Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
.gitignore pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
ARCHITECTURE.md Add ARCHITECTURE.md mapping the functional-core/imperative-shell split 2026-05-23 23:33:02 -06:00
build-web.sh pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
Caddyfile Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
Cargo.lock pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
Cargo.toml pre-alpha 0.0.1 — initial multiplayer voxel sandbox 2026-05-22 23:33:47 -06:00
DEPLOY.md DEPLOY.md: add active-deployment runbook for voxel.mxvs.art 2026-05-23 22:52:43 -06:00
docker-compose.prod.yml Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
docker-compose.yml Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
Dockerfile Add Docker + Caddy deploy for voxel.mxvs.art 2026-05-23 18:45:05 -06:00
run.sh Tick/toc instrumentation across build + test + mesh phases 2026-05-24 11:49:08 -06:00