Inland water: flow texture, water height texture and ripple settings per tile #406

Manually merged
github merged 1 commit from github-bot/gh-406 into gh-pr/406/base 2026-11-27 00:39:58 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-26 20:00 UTC · original
holdmysocks:six-inland-shading → master · +87 −11 · 2 files · 1 commits · merged 2026-11-26 21:29 UTC

sixng water --inland now also writes how each inland water tile is shaded. This covers the river and small-water part of SIX-199.

  • Every tile draws with the water_micro_geom shader. For each tile the export takes the shader its LOD 0 mesh uses.
  • Each tile's flow texture and water height texture are written to inland/textures/ and listed under the tile's shading. The tile's ripple scale and ripple bumpiness are listed there too.
    • Flow textures are BC3, with the flow direction in red and green around 128. They are 256 x 256 on 944 tiles and 512 x 512 on 7. The other 7 tiles are still water and carry a 4 x 4 placeholder.
    • Water height textures are R16 float with values from 0 to 1, so the PNGs don't clamp them. Each one's value range is recorded.
  • The textures cover each tile's 64 m square. On the surface vertices, UV0 is world x / 64 and -world y / 64. This fits all 952 tiles that have surface vertices exactly. inland.glb now keeps UV0.
  • Ripple scale is 0.04 and ripple bumpiness 1 on every tile.
  • Each tile's full shader (all textures and constants) is in shader. Most constant names are still unknown hashes.

Tests: cargo check --workspace --all-targets and cargo test -p sixng-core -p sixng-gui --release pass. The export was run on the real install.

**@⁠holdmysocks** on GitHub · 2026-11-26 20:00 UTC · [original](https://github.com/holdmysocks/SixNG/pull/406) `holdmysocks:six-inland-shading` → `master` · +87 −11 · 2 files · 1 commits · merged 2026-11-26 21:29 UTC `sixng water --inland` now also writes how each inland water tile is shaded. This covers the river and small-water part of SIX-199. - Every tile draws with the `water_micro_geom` shader. For each tile the export takes the shader its LOD 0 mesh uses. - Each tile's flow texture and water height texture are written to `inland/textures/` and listed under the tile's `shading`. The tile's ripple scale and ripple bumpiness are listed there too. - Flow textures are BC3, with the flow direction in red and green around 128. They are 256 x 256 on 944 tiles and 512 x 512 on 7. The other 7 tiles are still water and carry a 4 x 4 placeholder. - Water height textures are R16 float with values from 0 to 1, so the PNGs don't clamp them. Each one's value range is recorded. - The textures cover each tile's 64 m square. On the surface vertices, UV0 is world x / 64 and -world y / 64. This fits all 952 tiles that have surface vertices exactly. `inland.glb` now keeps UV0. - Ripple scale is 0.04 and ripple bumpiness 1 on every tile. - Each tile's full shader (all textures and constants) is in `shader`. Most constant names are still unknown hashes. Tests: `cargo check --workspace --all-targets` and `cargo test -p sixng-core -p sixng-gui --release` pass. The export was run on the real install.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:33:33 +00:00
github-bot changed target branch from master to gh-pr/406/base 2026-11-27 00:39:57 +00:00
github manually merged commit 14f39935ad into gh-pr/406/base 2026-11-27 00:39:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.