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
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!124
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-124"
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?
@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 UTCWhat
VICTORY_AMBIENT_SPECULAR_BOUND=1(off by default): a dispatch ofCS_RayMisswhose 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 asclear_airreads them), mixed with the room's slow mean asreflect_lightmixes 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 inreflect_light.CS_ResolveScreenSpacestill 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):a stand-in for the indirect light role=Radianceandrole=Resolvein the same second), so that was not the reason: the reason wasno stand-in for the indirect light: other tables role=Miss, which is counted under the same name;06bb6e728c7c99bfat that time:Uav(1, 104) 557x313 f26(the rays' image, found),Srv(0, 1000) 1x1 f28at 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 upstreamca9c75cdoes not have;cargo xtask policy: 280 files ok.🤖 Generated with Claude Code
github-bot referenced this pull request2026-11-27 20:26:40 +00:00
github-bot referenced this pull request2026-11-27 20:48:36 +00:00
github-bot referenced this pull request2026-11-27 21:01:20 +00:00
github-bot referenced this pull request2026-11-27 21:17:48 +00:00
github-bot referenced this pull request2026-11-27 21:33:42 +00:00
github-bot referenced this pull request2026-11-27 21:33:47 +00:00
github-bot referenced this pull request2026-11-27 22:14:36 +00:00
github-bot referenced this pull request2026-11-27 23:17:51 +00:00
github-bot referenced this pull request2026-11-28 00:10:59 +00:00
github-bot referenced this pull request2026-11-28 01:41:21 +00:00