Reflections stand-in: the light around where the miss program has no depth of the picture (VICTORY_AMBIENT_SPECULAR_BOUND=1, off by default) #124

Manually merged
github merged 1 commit from github-bot/gh-124 into gh-pr/124/base 2026-11-28 19:02:48 +00:00 AGit
Owner

@⁠1mosce on GitHub · 2026-11-27 18:31 UTC · original
1mosce:reflections-without-depth → main · +173 −3 · 2 files · 1 commits · merged 2026-11-28 19:01 UTC

What

VICTORY_AMBIENT_SPECULAR_BOUND=1 (off by default): a dispatch of CS_RayMiss whose tables hold the rays' image and no depth of the picture is followed all the same.

Without a depth there is no point and no normal, so no reflected direction. Each texel of the image takes the light the points gathered around the surface seen at that place of the screen (last frame's points, read by screen position as clear_air reads them), mixed with the room's slow mean as reflect_light mixes it, times the share; before any points were gathered, the slow mean alone. The share of the title's sky (VICTORY_AMBIENT_SPECULAR=<share>,<sky>) is kept as in reflect_light. CS_ResolveScreenSpace still writes what it found over it.

Without the switch nothing changes. The ten-second line gains the count of such dispatches and says whether the switch is on. The new pass is made with the others; if it does not compile, the others stand and only this one is left out.

Why

In the title's opening (an office, indoors) the stand-in for reflections ran in no frame for about three minutes, in two sessions on 2026-11-28 (RTX 4070 Laptop 8 GiB, Ryzen 9 8945HS, 32 GB, Series S profile, DLSS Balanced, VICTORY_AMBIENT=0.8, VICTORY_AMBIENT_SPECULAR=1):

  • every ten seconds 241 to 570 dispatches were counted as "before a frame's light was kept left as the title had them" and 0 were followed; 2:55 and 3:02 after the start every frame was followed (182 to 219 frames per ten seconds), and stayed so;
  • the light of a frame was kept from the first second of the world (a stand-in for the indirect light role=Radiance and role=Resolve in the same second), so that was not the reason: the reason was no stand-in for the indirect light: other tables role=Miss, which is counted under the same name;
  • the tables of program 06bb6e728c7c99bf at that time: Uav(1, 104) 557x313 f26 (the rays' image, found), Srv(0, 1000) 1x1 f28 at the depth's place, and no 32-bit depth of 1114x626 among the entries that resolved (23 of 45 did).

So the image is there and the depth is not, and the misses keep the sky's light in a room a hundred times darker: skin, glasses and eyes mirror the sky. With VICTORY_AMBIENT_ONCE=1 (less diffuse light to hide it) a face in that scene was a chrome mask.

What it does not do

It does not find the depth. Why its place holds a 1x1 texture during the opening I do not know; the picture's depth may be among the 22 entries that did not resolve. If it is found there, the full stand-in runs again and this is only what is left for the frames without one.

Outdoors a dispatch without a depth would have its sky reflections dimmed too (the sky's texels cannot be told apart without a depth). Water is left alone before this point, as it was.

Tested

  • ambient::tests::the_passes_compile (new): every pass of the module compiles, the new one among them. cargo test -p victory-gpu --lib ambient::: 6 passed.
  • cargo clippy -p victory-gpu --all-targets --locked: no warning that upstream ca9c75c does not have; cargo xtask policy: 280 files ok.
  • Not run in the title yet. The diagnosis above is from two sessions' logs; the picture with the switch on has not been looked at. I will add what a run shows here.

🤖 Generated with Claude Code

**@⁠1mosce** on GitHub · 2026-11-27 18:31 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/124) `1mosce:reflections-without-depth` → `main` · +173 −3 · 2 files · 1 commits · merged 2026-11-28 19:01 UTC ## What `VICTORY_AMBIENT_SPECULAR_BOUND=1` (off by default): a dispatch of `CS_RayMiss` whose tables hold the rays' image and no depth of the picture is followed all the same. Without a depth there is no point and no normal, so no reflected direction. Each texel of the image takes the light the points gathered around the surface seen at that place of the screen (last frame's `points`, read by screen position as `clear_air` reads them), mixed with the room's slow mean as `reflect_light` mixes it, times the share; before any points were gathered, the slow mean alone. The share of the title's sky (`VICTORY_AMBIENT_SPECULAR=<share>,<sky>`) is kept as in `reflect_light`. `CS_ResolveScreenSpace` still writes what it found over it. Without the switch nothing changes. The ten-second line gains the count of such dispatches and says whether the switch is on. The new pass is made with the others; if it does not compile, the others stand and only this one is left out. ## Why In the title's opening (an office, indoors) the stand-in for reflections ran in no frame for about three minutes, in two sessions on 2026-11-28 (RTX 4070 Laptop 8 GiB, Ryzen 9 8945HS, 32 GB, Series S profile, DLSS Balanced, `VICTORY_AMBIENT=0.8`, `VICTORY_AMBIENT_SPECULAR=1`): - every ten seconds 241 to 570 dispatches were counted as "before a frame's light was kept left as the title had them" and 0 were followed; 2:55 and 3:02 after the start every frame was followed (182 to 219 frames per ten seconds), and stayed so; - the light of a frame was kept from the first second of the world (`a stand-in for the indirect light role=Radiance` and `role=Resolve` in the same second), so that was not the reason: the reason was `no stand-in for the indirect light: other tables role=Miss`, which is counted under the same name; - the tables of program `06bb6e728c7c99bf` at that time: `Uav(1, 104) 557x313 f26` (the rays' image, found), `Srv(0, 1000) 1x1 f28` at the depth's place, and no 32-bit depth of 1114x626 among the entries that resolved (23 of 45 did). So the image is there and the depth is not, and the misses keep the sky's light in a room a hundred times darker: skin, glasses and eyes mirror the sky. With `VICTORY_AMBIENT_ONCE=1` (less diffuse light to hide it) a face in that scene was a chrome mask. ## What it does not do It does not find the depth. Why its place holds a 1x1 texture during the opening I do not know; the picture's depth may be among the 22 entries that did not resolve. If it is found there, the full stand-in runs again and this is only what is left for the frames without one. Outdoors a dispatch without a depth would have its sky reflections dimmed too (the sky's texels cannot be told apart without a depth). Water is left alone before this point, as it was. ## Tested - `ambient::tests::the_passes_compile` (new): every pass of the module compiles, the new one among them. `cargo test -p victory-gpu --lib ambient::`: 6 passed. - `cargo clippy -p victory-gpu --all-targets --locked`: no warning that upstream `ca9c75c` does not have; `cargo xtask policy`: 280 files ok. - **Not run in the title yet.** The diagnosis above is from two sessions' logs; the picture with the switch on has not been looked at. I will add what a run shows here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
In the title's opening the place of the depth holds a 1x1 texture and no table entry is a depth of twice the rays' image, so the stand-in for reflections ran in no frame for about three minutes (two sessions, 2026-11-28): the misses kept the sky's light in a room a hundred times darker. With the switch such a dispatch is followed by a pass that needs no depth: each texel takes the light the points around the surface seen there hold, whatever its direction, and the room's slow mean before any were gathered. The ten-second line counts them. The pass is made with the others; if it does not compile the others stand.

Tests: every pass of the module compiles (new).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:34:20 +00:00
github-bot referenced this pull request from a commit 2026-11-28 19:02:00 +00:00
github-bot changed target branch from main to gh-pr/124/base 2026-11-28 19:02:46 +00:00
github manually merged commit 88e34a4ca9 into gh-pr/124/base 2026-11-28 19:02:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!124
No description provided.