Skip to content

Use ray-sphere intersection for cloud shadows#22

Merged
aweeri merged 1 commit intoaweeri:mainfrom
sandrwich:feature/accurate-cloud-shadows
Mar 16, 2026
Merged

Use ray-sphere intersection for cloud shadows#22
aweeri merged 1 commit intoaweeri:mainfrom
sandrwich:feature/accurate-cloud-shadows

Conversation

@sandrwich
Copy link
Copy Markdown
Contributor

Cloud shadows now fall directly beneath their source instead of being offset in a fixed direction!!

image

Replace the fixed UV offset with a ray-sphere intersection that traces
from each surface point toward the sun to find the exact cloud layer
hit point. Increases shadow strength from 60% to 90%.
@aweeri aweeri merged commit 7aae545 into aweeri:main Mar 16, 2026
4 checks passed
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.

2 participants