Map 3D: each place's own water, and the bed through shallow water #336

Manually merged
github merged 12 commits from gh-pr/336/head into gh-pr/336/base 2026-11-26 20:28:28 +00:00
Owner

@⁠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 UTC

The 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:

    • inland water meshes (lakes, marsh, canals, the LOD tiles' water) use their own surface;
    • the sea uses 4 m below 0, where the beaches end.

    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)

  • The bed's reflectance (0.22, 0.20, 0.15).
  • The sea's level for the depth (-4 m).
  • The foam: depth, bands and 0.75 reflectance. The shoreline grid's wave placement is not used yet.

Checked

  • cargo check -p sixng-gui --tests gives no warnings.
  • naga validates the shaders.
  • New tests: the cache's round trip and the half-float conversion. The scene layout test is updated.
  • GPU screenshots: pending on the second PC.
**@⁠holdmysocks** on GitHub · 2026-11-26 02:22 UTC · [original](https://github.com/holdmysocks/SixNG/pull/336) `holdmysocks:six-map3d-water2` → `master` · +599 −21 · 7 files · 12 commits · merged 2026-11-26 06:35 UTC The 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: - inland water meshes (lakes, marsh, canals, the LOD tiles' water) use their own surface; - the sea uses 4 m below 0, where the beaches end. 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) - The bed's reflectance (0.22, 0.20, 0.15). - The sea's level for the depth (-4 m). - The foam: depth, bands and 0.75 reflectance. The shoreline grid's wave placement is not used yet. ## Checked - `cargo check -p sixng-gui --tests` gives no warnings. - naga validates the shaders. - New tests: the cache's round trip and the half-float conversion. The scene layout test is updated. - GPU screenshots: pending on the second PC.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:28:26 +00:00
github manually merged commit c69f9710a4 into gh-pr/336/base 2026-11-26 20:28:28 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.