Skip to content

Light the fair-weather cumulus from behind, not washed out - #328

Open
fredj wants to merge 1 commit into
clouds-tower-wallsfrom
clouds-backlight
Open

fredj wants to merge 1 commit into
clouds-tower-wallsfrom
clouds-backlight

Conversation

@fredj

@fredj fredj commented Nov 19, 2026

Copy link
Copy Markdown
Member

Stacked on #327 (its base): looking toward the sun, #327's fair-weather cumulus wash out to white. The eye sees the clouds with a real cloud's extinction scaled down, for their soft look, and the sun's light through that lights a cumulus' whole base.

  • In the cumulus only, the shadow map's depth beyond what the samples near a point see (the cloud above it) counts three times, and so does the direct beam the light scattered down from their top is net of: gray bases under sunlit tops, only the thin edges glowing toward the sun, the near samples keeping sunlit sides bright.
  • The rain's clouds keep their depth: the views under the deck and toward the sun under it are unchanged.

Tested: npm test, typecheck, build-demos; the weather demo at 2026-11-13 12 UTC, against #327 (mean luminance): over dry ground toward the sun 182 (blown out) to 165 with gray bases, away from it 152 to 149, from 12 km above 178 to 172; the rain deck views identical. GPU time unchanged within the timer's noise. Known limit: the factor follows the point lit, so a cumulus shaded by a rain tower at the shield's edge sees the tower deeper too.

Looking toward the sun, the fair-weather cumulus washed out to white:
the eye sees the clouds with a real cloud's extinction scaled down, for
their soft look, and the sun's light through that lit a cumulus' whole
base. In them, the shadow map's depth beyond what the samples near a
point see, the cloud above it, now counts three times, as does the
direct beam the light scattered down from their top is net of: their
bases are gray under sunlit tops and only their thin edges glow toward
the sun, the near samples keeping their sunlit sides bright. The rain's
clouds keep their depth, the overcast as it was. The factor follows the
point lit: a cumulus shaded by a rain tower at the shield's edge sees
the tower deeper too.
@fredj
fredj marked this pull request as ready for review November 19, 2026 22:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant