Map 3D: each place's own water, and the bed through shallow water #336
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!336
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/336/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-26 02:22 UTC · original
holdmysocks:six-map3d-water2→master· +599 −21 · 7 files · 12 commits · merged 2026-11-26 06:35 UTCThe map's water now takes each place's own colour and shows the bed through shallow water. SIX-211.
What it does
Water maps. The game's water fog atlas (scattering and extinction) and the water height map are loaded once in the background. The whole-map fallback textures are used: 32 m and 16 m per texel. They're cached in the work folder, and uploaded as two half-float textures (bindings 24 and 25).
Body colour. Where the maps are loaded, the water's single-scattering albedo comes from the fog atlas at that place, instead of the one timecycle value for the whole map. Marsh, lakes and the reddish coastal waters now differ from the open sea.
Shallow water. Depth is the water surface minus the height map's ground there:
The light reaching the bed and coming back up through the water's extinction (along the refracted view ray) blends the bed in. Shallow lakes and the LOD tiles' marsh water no longer show as deep navy sea, and the sea lightens near the shore.
Foam. Where the water is shallower than 1.6 m it foams: bands roll in towards the shallower water, broken up by noise along the shore.
Before the maps load, or outside them, the water is shaded as before.
Own choices (not decoded)
Checked
cargo check -p sixng-gui --testsgives no warnings.