haze and glow
Distance fading to dark, and bright things spreading a glow.
Built2 changes builtSeen all the timeLast touched December 2, 2026: a change of its own was written or changed. Commit 74aa50e7f.
In the terminal
No depth: every square of the map is equally clear, near or far.
In Codex
A dark haze thickens with distance, and glowing letters, beams and lights bloom with a soft halo.
BuiltCamera or view
Details
Depth: an exponential distance fog into the dark paper of the unknown (light.haze, 0.06; light.darkness_color, N-284), thinned to haze_from_above (a tenth) from high up; HDR rendering with bloom and filmic tonemapping (TonyMcMapface), so glowing letters, beams and soft lights bloom. Bloom is quiet up close and a little stronger from the high views (N-285, N-253: glow_around_bright_things 0.12, glow_around_bright_things_from_above 0.25, by the camera's height), and only what is brighter than glow_only_above blooms (0: everything a little). A light watercolor grade inside the tonemapping (ColorGrading, free): the picture's exposure in stops (exposure_in_first_person, -0.8, eased in with first person: the lantern is half a square from the walls there and blew them out), the midtones' color 1.1 and contrast 1.05, the highlights' color 0.9 so the torch's pool doesn't burn. Monster letters and pet marks ignore the fog (monsters_show_through_haze), beams and blasts too.
- Id
codex.fog- Exact state
- Built
- Playtests
journey-game- Settings
light.haze,light.glow_around_bright_things,light.glow_around_bright_things_from_above,light.glow_only_above,light.exposure,light.exposure_in_first_person,light.midtones_color,light.midtones_contrast,light.highlights_color,light.haze_from_above,characters.monsters_show_through_haze- Code
crates/codex-client/src/pov.rs
| N-57 | Done | A high diagonal overview camera |
The picture is graded like a film, the dim ground lifted off the dark and every hue held.
BuiltCamera or view
Details
One full-screen pass after the stock tone curve (TonyMcMapface and its color grading, codex.fog) and before the edges are smoothed and the HUD drawn (assets/shaders/grade.wesl, N-762). The picture is reshaped in OKLab's lightness alone, so every letter keeps its hue. At and below the unknown's own lightness nothing changes, so the unknown stays the darkest thing in the frame. Above it: a contrast curve round a pivot (0.25 close by, 0.35 from above), so the shadows keep their weight and what is lit, the hero's letter, the lantern's pool, a wall's lit face, stands further out; a small lift only just above the dark, where the contrast would crush the dim ground; a light shoulder that keeps the lantern's hot spot below white (N-295); a lifted color's chroma follows its lift and a darkened one keeps its own (N-5260); a soft ceiling on chroma; a split tone, a little blue in the deep shadows and a little straw in the lights (D-49's watercolor); then one 8-bit step of ordered dither, fixed to the pixel. One set of numbers close by and one from above (nh_plays::picture::air::GRADE_CLOSE, GRADE_ABOVE), eased by the camera's height alone: no exposure moves by itself. The HUD is drawn after it and never graded. Measured by scripts/brightness-order.py (dark and hot shares, the ladder, the hero's ratio over its floor).
- Id
codex.grade- Exact state
- Built
- Playtests
gallery-lit-room- Settings
light.grade- Code
crates/codex-client/src/pov/grade.rs,crates/codex-client/src/picture.rs,crates/nh-plays/src/picture/air.rs,assets/shaders/grade.wesl
Accepted pictures and playtests
Playtests: journey-game, gallery-lit-room
Planned and proposed
In progress For each square, the light that falls on it, summed from every source the game shows.
Left to do: The torch as a source is round 2, then room light by region, lamps and lit monsters.
