Water: name 12 of the water tile shader's parameter hashes #512

Manually merged
github merged 2 commits from github-bot/gh-512 into gh-pr/512/base 2026-11-27 21:45:48 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 21:29 UTC · original
holdmysocks:water-slot-names → master · +16 −7 · 3 files · 2 commits · merged 2026-11-27 21:42 UTC

Names 12 of the 45 unnamed shader parameter hashes of water_micro_geom, the shader of every inland water tile.

  • The names come from a meet-in-the-middle joaat search over water and shader words. That search should give about 16 random hits across 45 hashes, so a name was kept only when it fits the value or a sibling:
    • useflowmap, useheighttexture, usesurfacemap are integer flags. They are 1 on 952 tiles and 0 on the other 6, the tiles whose flow, height and surface textures are all 4 x 4 placeholders.
    • watersurfacemaptexture (e0548ad3) is the per-tile BC7 texture that usesurfacemap switches on.
    • surfacedetailfadenear and surfacedetailfadefar are 500 and 1500.
    • surfacedetailtintcoloura, surfacedetailtintcolourb and surfacedetailtintmultiplier are float4 ones. usesurfacedetailmap is 0, which fits the surface detail textures being placeholders.
    • surfacedetailcontrol is 0, and microgeomcontrol is 0, 1 or 4.
  • inland.json now lists the per-tile texture as shading.surface_map_texture instead of tile_texture_e0548ad3. Its notes say the three flags are integers that read as 1.4e-45 as floats.
  • 33 hashes are still unknown, 4 of them A8 texture slots.

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

**@⁠holdmysocks** on GitHub · 2026-11-27 21:29 UTC · [original](https://github.com/holdmysocks/SixNG/pull/512) `holdmysocks:water-slot-names` → `master` · +16 −7 · 3 files · 2 commits · merged 2026-11-27 21:42 UTC Names 12 of the 45 unnamed shader parameter hashes of `water_micro_geom`, the shader of every inland water tile. - The names come from a meet-in-the-middle joaat search over water and shader words. That search should give about 16 random hits across 45 hashes, so a name was kept only when it fits the value or a sibling: - **`useflowmap`, `useheighttexture`, `usesurfacemap`** are integer flags. They are 1 on 952 tiles and 0 on the other 6, the tiles whose flow, height and surface textures are all 4 x 4 placeholders. - **`watersurfacemaptexture`** (e0548ad3) is the per-tile BC7 texture that `usesurfacemap` switches on. - **`surfacedetailfadenear` and `surfacedetailfadefar`** are 500 and 1500. - **`surfacedetailtintcoloura`, `surfacedetailtintcolourb` and `surfacedetailtintmultiplier`** are float4 ones. **`usesurfacedetailmap`** is 0, which fits the surface detail textures being placeholders. - **`surfacedetailcontrol`** is 0, and **`microgeomcontrol`** is 0, 1 or 4. - `inland.json` now lists the per-tile texture as `shading.surface_map_texture` instead of `tile_texture_e0548ad3`. Its notes say the three flags are integers that read as 1.4e-45 as floats. - 33 hashes are still unknown, 4 of them A8 texture slots. Tests: `cargo check --workspace --all-targets` and `cargo test -p sixng-core -p sixng-gui --release` pass. The `--inland` export was run on the real install: all 958 tiles list the surface map.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:33:28 +00:00
github-bot changed target branch from master to gh-pr/512/base 2026-11-27 21:45:46 +00:00
github manually merged commit 5705fe954c into gh-pr/512/base 2026-11-27 21:45:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.