tron-room-demo: fog toward the background color (fade into the void)
The fog target is now COL_BG instead of the steel haze: far geometry converges exactly onto the void color, so the deck dissolves seamlessly into the background instead of glowing against it. This exposed and fixed a channel bug in fogMix: the green channel divided by 64 instead of 32 (blended at half strength). It was invisible while the fog color's green level matched the walls', but fading toward g=0 left far walls tinted green. fogMix is now a weighted average (c*(32-f) + fog*f) with per-channel rounding, exact at both ends and unbiased in either direction.
This commit is contained in:
@@ -26,9 +26,8 @@ push, which on the device ships the 565 buffer as-is).
|
||||
- `#` walls, `o` cover crates, the `+` blast door and the `T` terminal
|
||||
as solid shaded boxes: backface culling, painter's-algorithm depth
|
||||
sort, lambert lighting from above, bright top rims, and depth fog —
|
||||
geometry fades toward a steel haze color with camera distance
|
||||
(aerial perspective), so the far deck dissolves atmospherically
|
||||
instead of just darkening.
|
||||
geometry blends toward the background color with camera distance, so
|
||||
the far deck dissolves seamlessly into the void.
|
||||
- Floor tiles as lit quads with a subtle checker.
|
||||
- The demo map's **network graph** as glowing pylons with teal link
|
||||
lines and cyan packets traveling along the edges.
|
||||
|
||||
Reference in New Issue
Block a user