tron-room-demo: true depth fog (aerial perspective)
The old 'fog' was multiplicative darkening (color scaled toward black), which reads as shading rather than atmosphere. Geometry now blends toward a steel haze color (COL_FOG) with camera distance: fogAmt() maps distance to a 0..32 fixed-point amount between FOG_NEAR/FOG_FAR, and fogMix() lerps the 5/6/5 channels toward the haze with rounding. Applied to box faces + top rims, floor quads, network links and packets. Near geometry stays crisp and saturated; the far corners of the deck dissolve into the haze, giving a real depth cue.
This commit is contained in:
@@ -25,7 +25,10 @@ push, which on the device ships the 565 buffer as-is).
|
||||
radius/height.
|
||||
- `#` 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, distance fog, bright top rims.
|
||||
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.
|
||||
- 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