Reflections stand-in: the frame's depth plane before the miss program's own place #368

Closed
github-bot wants to merge 0 commits from github-bot/gh-368 into main AGit
Owner

@⁠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 merging

What 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=1 is 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, where VICTORY_AMBIENT_SPECULAR=0 made 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):

  • The rays' image (480x270 R11G11B10, the UAV the miss program writes) holds the sky's light all over: mean about 5 / 11 / 26, against 0.1 to 0.3 for the lit scene.
  • The stand-in's three dispatches do run right after the miss program's, bound to that image.
  • The image is the same before and after them (mean 5.1506 / 11.4666 / 25.8418 before, 5.1510 / 11.4679 / 25.8444 after).
  • The depth they are given is the view at the miss program's own place (table 0, place 1000): a 960x540 R32 depth-stencil texture that no command of the frame writes and that is 100 % zero. reflect_light returns for a point at 1000 m or more ("nothing is reflected by the sky"), so it returns for every point.
  • The depth plane of the frame's depth-stencil target is in the same table at place 752 (the place the fallback for the first cutscenes already finds) and holds the picture's depth (no zero texel, mean 0.021).

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=usual gives 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.
  • In the game, one PC only (RTX 5080 16 GB, driver 616.56, Windows 11, Series S profile, DLSS Performance): the same interior before and after. The grain on the floor, the table and the sills is gone; a second capture of the room confirms it. The build played had this logic with the closure written slightly differently (the target's plane was not passed through the size check a second time); the branch as pushed was built and linted but not played again.
  • Not tested: the Series X profile, cutscenes, exteriors, water, other cards. I have no reason to think the depth-stencil target's plane is ever the wrong depth for the picture, but where the program's own place was right before, this now reads a different texture, so a check on the 4070 SUPER would be good.

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.

**@⁠MarcyMarbles** on GitHub · 2026-12-01 19:27 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/368) `MarcyMarbles:fix/reflections-stand-in-depth` → `main` · +73 −51 · 2 files · 72 commits · closed without merging ## What 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=1` is 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, where `VICTORY_AMBIENT_SPECULAR=0` made 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`): - The rays' image (480x270 R11G11B10, the UAV the miss program writes) holds the sky's light all over: mean about 5 / 11 / 26, against 0.1 to 0.3 for the lit scene. - The stand-in's three dispatches do run right after the miss program's, bound to that image. - The image is the same before and after them (mean 5.1506 / 11.4666 / 25.8418 before, 5.1510 / 11.4679 / 25.8444 after). - The depth they are given is the view at the miss program's own place (table 0, place 1000): a 960x540 R32 depth-stencil texture that no command of the frame writes and that is **100 % zero**. `reflect_light` returns for a point at 1000 m or more ("nothing is reflected by the sky"), so it returns for every point. - The depth plane of the frame's depth-stencil target is in the same table at place 752 (the place the fallback for the first cutscenes already finds) and holds the picture's depth (no zero texel, mean 0.021). 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=usual` gives 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`. - In the game, one PC only (RTX 5080 16 GB, driver 616.56, Windows 11, Series S profile, DLSS Performance): the same interior before and after. The grain on the floor, the table and the sills is gone; a second capture of the room confirms it. The build played had this logic with the closure written slightly differently (the target's plane was not passed through the size check a second time); the branch as pushed was built and linted but not played again. - Not tested: the Series X profile, cutscenes, exteriors, water, other cards. I have no reason to think the depth-stencil target's plane is ever the wrong depth for the picture, but where the program's own place was right before, this now reads a different texture, so a check on the 4070 SUPER would be good. 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.
In play on the Series S profile the place the miss program names for the
picture's depth held a depth-stencil texture of the picture's size that
nothing in the frame wrote: all zeros. The stand-in took every point for
sky and left the rays' image as the title had it, so floors, table tops
and glass reflected the sky's light as a white-blue grain.

The depth plane of the frame's depth-stencil target is in the same table
(the place the fallback for the first cutscenes already finds). It is now
taken first where it is there; the program's own place and the other
fallbacks follow as before. VICTORY_AMBIENT_MISS_DEPTH=usual: as before.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 19:32:23 +00:00
Author
Owner

@⁠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.

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 21:09 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/368#issuecomment-7325827684) 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.
github-bot closed this pull request 2026-12-02 07:54:34 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.