GPU: the least indirect light where the title's ray-traced probes have none #116
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/116"
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?
Imported from Zettrox/ztrx. Originally posted by starnotes-xj on 2026-11-25T12:35:03Z.
The title's indirect diffuse light comes from probes filled by tracing rays, which do not run here:
CS_ScreenProbes_TemporalResolveleaves whatever its unwritten inputs held, so anything the sun does not reach directly is black — and in the prologue it is not even black but blown out, because the title's exposure reads that garbage.This replaces the resolve's output with a constant right after it runs (raised, not added), so the title's own lighting still applies the surfaces' colours and its exposure sees a sane average.
Ported from Belobug's AMD fork (
belobug/VIctory-Belobug-AMD, commit 4f45ab8): the same pass — root constants (level, tint) and a UAV of the R9G9B9E5 light texture, one dispatch per resolve. Here it is hooked intoState::dispatch, and the list's cached heap, root signature and pipeline are invalidated so the next draw sets its own.VICTORY_AMBIENT=<level>sets the light (0.6 by default,0none,offkeeps the title's output).Measured (RTX 4060 Laptop, 8 GB, NVIDIA 621.14)
VICTORY_AMBIENT=0: the whole frame washes out to white; only subtitles are readable.Still black after this: eyes, and surfaces lit only by the title's reflections (those rays do not run yet).
Checks
cargo test -p victory-gpu --release: 112 passed, 0 failed (the newambient_pass_buildsneeds a D3D12 device and returns early without one).cargo clippy --release -p victory-gpu: clean.ambient light level=0.6 width=2560 height=1440and the diff in the images above.Imported from Zettrox/ztrx. Originally posted by ofc0urse on 2026-11-25T13:15:01Z.
Confirmed on a second 8 GB NVIDIA card, on the newer fork tree.
RTX 4060 Ti 8 GB (driver 621.24), i5-14400F, 32 GB, Windows 11, diagnostics build,
--console series-s.89cc499cherry-picked cleanly onto fxceless/victory-forkmainat0b0074e(with fxceless/victory-fork #610, #798, #823 and #834 also on top), defaultVICTORY_AMBIENT(0.6). The log showsambient light level=0.6 width=1280 height=720.With it, the cell after the window scene shows its walls, the blue window frame and bunks, the ceiling lamps and the guard at the door; the dayroom shows the inmates at the tables instead of black silhouettes. Without it (the same set on the two previous mains,
9376fd6andf85101b) both rooms were dark apart from the sunlit patches. Faces are still dark in places, as you wrote.20-minute run with an automated walk out of the cell: 175-265 ms a frame, no device loss.
🤖 Generated with Claude Code
Imported from Zettrox/ztrx. Originally posted by starnotes-xj on 2026-11-25T13:40:54Z.
Thanks for the second 8 GB data point — the dayroom detail (inmates at the tables instead of silhouettes) is exactly what the pass is for.
On the faces still being dark: that is the next gap here too. The eye material has its own tiled-lighting programs (
TL_PS_PBR_MATERIAL_EYE_*), and they do translate and run — the pass is drawn full-screen — so the darkness is in what those programs read (the bounce/reflection data the title's rays would fill), not a missing draw. The same run also showed sevenPS_PuddleDetectand fiveshadowmask:CS_TraceShadowRays_*programs failing to translate ona descriptor read only as data; #127 fixes that class (40 programs of the pack, +35 pixel and +4 compute emitted), which is where the bounce data is meant to come from.A useful next data point if you run again: a frame in direct sun with a character in shade, before and after #127, and whether puddles/reflections changed in the dayroom.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.