Reflections stand-in: the frame's depth plane before the miss program's own place #368
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/readmet3xt-lab--foxhound!368
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-368"
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?
@MarcyMarbles on GitHub · 2026-12-01 19:27 UTC · original
MarcyMarbles:fix/reflections-stand-in-depth→main· +73 −51 · 2 files · 72 commits · closed without mergingWhat is wrong
In play on the Series S profile (RTX 5080, DLSS Performance, 1080p output) glossy surfaces indoors are covered by a white-blue grain: floors where the sun falls, table tops, window sills, the glass of a tank.
VICTORY_AMBIENT_SPECULAR=1is on (the launcher's set) and the log says the reflections stand-in follows the miss program, yet nothing changes. The description matches the "white speckle and over-bright patches indoors" of #256 (another RTX 5080, Series X profile, whereVICTORY_AMBIENT_SPECULAR=0made no difference either).What a captured frame shows
One frame of that interior, recorded with the diagnostics build and looked at with
victory replay(--pixel,--images,--flow,--listing):reflect_lightreturns for a point at 1000 m or more ("nothing is reflected by the sky"), so it returns for every point.The stand-in for the diffuse light (the resolve) already reads that depth-stencil target in this frame; only the reflections' one read the empty texture.
The change
For the miss program, the depth plane of the frame's depth-stencil target is taken first where the frame's table has it. The program's own place, the scan of its tables and the wider fallback follow in the order they had. The fallback's loop moved into a closure so that it can be asked for the target's plane alone; its code is unchanged.
VICTORY_AMBIENT_MISS_DEPTH=usualgives the order from before.Tested
cargo clippy -p victory-gpu --all-targets --locked -- -D warnings, the same with--all-features,cargo test -p victory-gpu ambient,cargo xtask policy --staged.No captures or pictures are attached (asset policy).
Not in this change
Still there in the same room, with other causes: sparse bright blue dots in the air (a particle program's draws write about 0.2 / 0.4 / 0.8 where the scene has 0.004; where that light comes from is not found yet), and a blue veil in a dark close-up.
@readmet3xt-lab on GitHub · 2026-12-01 21:09 UTC · original
Thank you for the capture and the clear write-up. Taken and being tested. We added one change: when the depth plane can be read as depth, it is moved into a readable state before the pass reads it.
Pull request closed