Map 3D: the weather's clouds and their shadows #339

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

@⁠holdmysocks on GitHub · 2026-11-26 02:27 UTC · original
holdmysocks:six-map3d-clouds → master · +213 −9 · 6 files · 9 commits · merged 2026-11-26 05:51 UTC

The HDR map now draws a cumulus layer from the weather, with moving cloud shadows on the ground. SIX-211.

What it does

  • Layer. One layer between the timecycle's local_atmosphere_cloud_height and local_atmosphere_cloud_height_top (200 and 1500 m).
  • Cover. A drifting noise field, thresholded by the weather's cloud cover (the daylight table's cloud_cover). The drift comes from local_atmosphere_cloud_wind_velocity_scale.
  • Seen through. The sky and every surface behind the layer are seen through it: optical depth from four samples along the ray's path through the layer.
  • Lit. A cloud is lit by the sun or moon through the cloud above it (forward-peaked phase, darker deep bases) and by the sky.
  • Shadow. The key light reaching any surface is cut by the cloud over it in the light's direction, so cloud shadows move over the map. The flat sunlight dimming for cloud cover drops from 85 % to 35 % of full cover; the drawn shadows carry the rest.
  • --no-clouds, or the clouds checkbox, turns them off.

Own choices (not decoded)

  • The noise (2.5 km features). The game's cloud map and noise textures are not used.
  • The extinction (0.004 per m at full density).
  • The drift speed (12 m/s at scale 1).

Checked

  • cargo check -p sixng-gui --tests gives no warnings.
  • naga validates the shaders.
  • The scene layout test is updated.
  • GPU screenshots: pending on the second PC.
**@⁠holdmysocks** on GitHub · 2026-11-26 02:27 UTC · [original](https://github.com/holdmysocks/SixNG/pull/339) `holdmysocks:six-map3d-clouds` → `master` · +213 −9 · 6 files · 9 commits · merged 2026-11-26 05:51 UTC The HDR map now draws a cumulus layer from the weather, with moving cloud shadows on the ground. SIX-211. ## What it does - **Layer.** One layer between the timecycle's `local_atmosphere_cloud_height` and `local_atmosphere_cloud_height_top` (200 and 1500 m). - **Cover.** A drifting noise field, thresholded by the weather's cloud cover (the daylight table's `cloud_cover`). The drift comes from `local_atmosphere_cloud_wind_velocity_scale`. - **Seen through.** The sky and every surface behind the layer are seen through it: optical depth from four samples along the ray's path through the layer. - **Lit.** A cloud is lit by the sun or moon through the cloud above it (forward-peaked phase, darker deep bases) and by the sky. - **Shadow.** The key light reaching any surface is cut by the cloud over it in the light's direction, so cloud shadows move over the map. The flat sunlight dimming for cloud cover drops from 85 % to 35 % of full cover; the drawn shadows carry the rest. - `--no-clouds`, or the **clouds** checkbox, turns them off. ## Own choices (not decoded) - The noise (2.5 km features). The game's cloud map and noise textures are not used. - The extinction (0.004 per m at full density). - The drift speed (12 m/s at scale 1). ## Checked - `cargo check -p sixng-gui --tests` gives no warnings. - naga validates the shaders. - 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:41 +00:00
github manually merged commit 38d7d75dbe into gh-pr/339/base 2026-11-26 20:28:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.