Rust voxel sandbox (wgpu + wasm + axum multiplayer)
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. |
||
|---|---|---|
| server | ||
| src | ||
| test | ||
| web | ||
| .dockerignore | ||
| .gitignore | ||
| ARCHITECTURE.md | ||
| build-web.sh | ||
| Caddyfile | ||
| Cargo.lock | ||
| Cargo.toml | ||
| DEPLOY.md | ||
| docker-compose.prod.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| run.sh | ||