Map 3D: sun and moon shadows (cascaded shadow maps) #287
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!287
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/287/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 15:14 UTC · original
holdmysocks:six-map3d-shadows→master· +648 −12 · 7 files · 20 commits · merged 2026-11-25 18:48 UTCStacked on #286 (the map's sky, light and exposure); this PR adds only the shadows. SIX-211.
What it does
The 3D map's sun (or the moon at night) now casts shadows:
dir_shadow_num_cascades.--no-shadows, turns them off. The perf lines report shadow draws. The model viewer binds a 1-texel stand-in and is unchanged.Known limits
Verified
On an RTX 3090 (Vulkan), release build, city poses with all game files:
cargo test -p sixng-gui atmo:: shadow::: 6 passed. No panics and no wgpu validation errors.--no-shadows. No acne on the plaza, roofs or ground. Decals show inside the shadow.