Viewer: ground bounce in the model view's ambient light #329
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!329
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/329/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-26 01:13 UTC · original
holdmysocks:claude/ground-bounce-ambient→master· +41 −7 · 3 files · 1 commits · merged 2026-11-26 01:24 UTCCharacters lit from behind by a low sun went dark brown on their shaded side in the model view: its ambient was the sky alone, with ground light only on surfaces facing straight down. In the game such shots keep the face and body lit by light bounced off the ground.
The model view's ambient now follows the map scene's ambient cube (cs_ambient):
ambient_bounce_intensitytimes that albedo (0.5 when no weather is picked, the map's default too).The bounce strength is read from the timecycle into
daylight::Light::bounce, kept inLook::bounceand passed insun_col.w. Hair still callsambientwith its strand tangent and gets the same light.Test renders (character at a game-frame angle, 17 h, sun turned behind her):
Not changed: the map view (it already had this term) and the Metal 4 renderer, which has its own shader.
Tests:
cargo test -p sixng-core -p sixng-gui -p sixng-clipass.