ambient: window haze fix, off by default (upstream e5d2921, 5e09c3f) #67
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!67
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-67"
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?
@Kal0s-design on GitHub · 2026-12-05 19:56 UTC · original
Kal0s-design:port/window-haze→main· +85 −4 · 5 files · 2 commits · merged 2026-12-05 22:29 UTCFrom upstream ReVIctory (e5d2921 and its review follow-up 5e09c3f, authors kept). Its author tested it on an RDNA 2 card with ray tracing off, so it's for the AMD cards this fork targets.
With ray tracing off, the lighting stand-in's air and glass volume clamps only act on columns whose stencil says interior. A window or open door seen from inside shows the outdoors, so the room's air in front of the glass kept the window's unshadowed light, a white haze over windows shaped by the froxel grid. With the switch on and most of the view indoors (the interior share of the cached stencil, computed once per frame by the mean pass), those columns are bounded like the room, but only up to the window's depth, so fog and godrays outside stay as they were. It's off unless VICTORY_AMBIENT_WINDOW_AIR=1, and the F1 menu has it under Lighting as "Window haze fix".
Porting notes. The menu's switch list is a slice here (as in upstream's 8bff52b, and in #66), so adding an entry doesn't need the count changed. This fork's Dev tab lists the switch among its lighting stand-in internals, now 18. The new per-frame value goes in the stats buffer at offset 48, which is free in this fork's shaders too (0 to 16 and 64 to 192 are used).
Clippy -D warnings is clean in both of the Lint workflow's runs, and the ambient, live and overlay tests of victory-gpu pass (31), the_passes_compile among them, so the ambient shaders still compile. I couldn't check the picture here, I'm on one NVIDIA desktop card and don't run the game for this.
AI-assisted: yes
🤖 Generated with Claude Code