water
Pools, moats, the Plane of Water and walls of water.
Builtneeds review2 changes builtSeen on some levelsLast touched December 2, 2026: a change of its own was written or changed. Commit 61cccfaa6.
In the terminal
Blue '}' for pools and moats, bright blue '}' for WATER. Water covers objects and traps on it (covers_objects): what lies in it is not drawn. With color off, lava drawn with the same symbol is set in inverse video (MG_BW_LAVA) so the two differ.
Quotes from NetHack
Water, water, everywhere, And all the boards did shrink;
2 more quotes
A pool of water or moat or a wall of water or a pool of lava or a wall of lava.
You sink like %s.
Decisions
Ideas are to be planned for the drawbridge, air, the plane's water and squares felt while blind.
Not decidedFull text
On the page of the backlog's questions, 2026-11-17, asked whether to keep them as the terminal shows them for now (walls, doors and bars, floors and ground, water and lava, stone, unexplored and remembered squares): "Plan ideas for them".
Backlog decisions: D-131In Codex
The terminal's own floor characters are painted flat on the floor in their colors.
BuiltLetter
Details
Off by default (D-12): the terminal's own floor character ('.', '#', '}', the engraving's backtick) painted flat on the floor in its color, self-lit at terminal_dots_brightness, dimmer for a dark part of a room. The only way the 3D world shows an engraving's glyph or tells lit from dark floor.
- Id
codex.floor_glyphs- Exact state
- Built
- Settings
dungeon.terminal_dots_on_floor,dungeon.terminal_dots_brightness- Code
crates/nh-scene/src/build.rs,crates/codex-client/src/draw/world.rs
Still water mirrors the room's walls at a slant and is dark glass from above.
Builtneeds review3D form
Based on the real thing: A pool is still dark water whose wet bed shows in the shallows and is lost with depth, and which at a slant mirrors the walls the map shows, never the unknown.
Details
Water as a real surface (N-763, the director, 2026-12-02, the remaster wave: materials; folds N-695, N-722, N-725). NetHack's pool and moat are S_pool, "water", a blue } (include/defsym.h:136); the DevTeam's tile 42 (win/share/other.txt:831) is a dark field with blue strokes of waves. A pool lies still: nothing in the game moves it (N-735), so its swell and sway are off while it mirrors (a fountain's basin still wells: its own treatment). From above it is dark glass: the pool's mesh says how far each point is from its edge (its UV x, 0.15 deep to 0.47 at the edge), and the bed shows through by exp(-5 x depth / cos(view)), so the bank's wet stone shows in the shallows, sooner lost at a slant, never lighter than the water beside it (the edge is a lip, never a pale band, D-75); the deep is NetHack's blue whole and saturated, a little darker than the welling water's, and its glow goes where the bed shows. At a slant it mirrors the place: the view's ray, turned up off the level water (the surface's normal straight up, so the mirror never swims), is walked square by square across the map's squares (the texture the stone reads, nh-plays `underway::squares::squares`) for up to 24 squares; the first square that the world draws as a wall is drawn at the height the ray meets it, in the stone's gray (0.30, 0.27, 0.23) under the light of the open square in front of it as the map has it (a lit room in sight in full, out of sight or remembered half, an unlit room a tenth), a little darker toward its top and gone softly at it; a ray that passes over the walls' height, reaches an unknown square or rock with nothing built finds the dark. The mirror is laid over the blue by water's Fresnel (Schlick, 2% straight down) three times over, at most 0.42 of the water at a graze, so the water always stays blue and a known wall plainly shows in it from the close views; what it gives back is 0.7 as bright as the wall. A mirrored wall's face recedes from its square's edge by a smooth wander up to 0.16 squares (the walls' own bumps), so its corners never stand as ruler lines. No screen-space reflection: nothing at the screen's edge changes it, and it holds as the camera turns. Only a pool whose own square the map shows as known open ground mirrors. From the high views (the camera 3 to 7 squares above the water, eased in) the torch's glint is held under the hero's letter: its brightest channel at most 0.22 as drawn (N-722). The lip (N-695): the water's outermost edge (the last eighth of its shallows) is darker, to 40% at the very edge, its glow out: the bank's shadow, a thin dark line that sets the water below the floor. Monsters, objects and the hero are not mirrored: only the walls the map shows. 0 (dungeon.water_mirrors): the welling blue water from before.
- Id
codex.water_mirror- Exact state
- Built, not reviewed
- Playtests
gallery-water- Settings
dungeon.water_mirrors- Code
assets/shaders/basin_water.wesl,crates/codex-client/src/draw/fountain.rs
Applies to everything on the map (4)
- Water is a natural pool, one body with a wandering edge, a wet bank and the fountain's water.
- Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
- What the game showed on a square stays drawn under a monster or object that now stands there.
- The map is drawn as a 3D world of walls and floors, lit by the hero's torch and a faint glow.
Accepted pictures and playtests
A change to how this looks is compared with these pictures before it is accepted.
gallery-water, water. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.Playtests: gallery-water
Details for builders
Id: water. Lexicon subjects: terrain.water.
Design notes from NetHack
Cold freezes pools and moats; fire boils a pool into a pit and steam. Objects and traps in it are not drawn. Hallucination renames the liquid.
Fire boils it into a pit and a short-lived steam cloud ("The water evaporates.").
Farlook names it by place: "moat", "shallow sea" (Medusa), "swamp" (Juiblex), "pond" (Samurai home). Cold: "The moat is bridged with ice!"
Air bubbles drift through the water each turn (movebubbles), carrying the hero and what is in them.
Water from floor to ceiling in bright blue; it blocks sight and stops thrown objects.




