Inland water: decode the water height texture and check it per tile #411
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!411
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-411"
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 21:15 UTC · original
holdmysocks:six-inland-height→master· +55 −4 · 2 files · 3 commits · merged 2026-11-26 23:20 UTCExplains what an inland water tile's water height texture holds, and checks it on every tile.
z = origin z + (2 v - 1) * H. A texel of 0 means no water.His the largest distance of a surface vertex from the origin's height. Each tile gets it asshading.water_height_scale_m.shading.water_height_check. The texture is sampled under every surface vertex and compared with the vertex height, giving the median and 95th-percentile error, the median value, and the share of texels with water.summary.water_height_texture_check:H, and on 304 it is under 3%.Tests:
cargo check --workspace --all-targetsandcargo test -p sixng-core -p sixng-gui --releasepass.