Map 3D: the game's water (wind waves, Fresnel, glint, body colour) #298
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!298
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/298/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-25 18:21 UTC · original
holdmysocks:six-map3d-water→master· +237 −7 · 5 files · 29 commits · merged 2026-11-25 19:28 UTCFollows #286 (sky and light) and #287 (shadows), both merged. This PR adds the water. SIX-211.
What it does
The map's sea and the game's water meshes are now shaded from the timecycle's
water_*values, instead of a flat blue.water_ocean_beaufort_scaleandwater_ocean_fetch:0.836 B^1.5m/s.water_ripple_speed_scale). Waves shorter than a few pixels fade into roughness, so the far sea doesn't alias.water_fresnel_rescale*) mirrors the sky.water_direct_light_roughness_modadded to the roughness.water_clip_scattering_*/water_clip_extinction_*(with their scales), tinted bywater_clip_fog_color_tint_*×water_clip_fog_brightness.Own choices (not decoded)
Not yet
Checked
cargo check -p sixng-gui --testsgives no warnings.sea_waves_grow_with_wind, and the scene layout test for the larger uniform.cargo test -p sixng-gui atmo:: shadow::gives 7 passed, with no panics and no wgpu validation errors.--no-shadowsapart from real shadows. Pole, building and tree shadows still fall on the terrain.