Add opt-in diffuse ambient floor when resolve depth is unavailable #204
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/204"
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 TaynanGT/Vice-Tay. Originally posted by t90 on 2026-11-27T09:12:44Z.
When the diffuse screen-probe resolve is missing its expected depth SRV, the ambient stand-in skips that resolve and shaded surfaces can remain almost black.
VICTORY_AMBIENT_FLAT=<level>provides an opt-in, slightly warm neutral diffuse minimum before materials are applied. It preserves brighter and saturated probe light. Valid-depth lighting keeps its existing path; incompatible depth views remain rejected.The setting defaults off, requires the existing ambient stand-in and builder policy, accepts positive finite numbers capped at 2, and requires a restart. Set
VICTORY_AMBIENT=1andVICTORY_AMBIENT_FLAT=0.3separately in the environment. The value is irradiance, not a percentage.Following review, FLAT is built only when requested. Its setup failure leaves the existing ambient passes available; an unavailable flat pipeline leaves the missing-depth resolve unchanged before any command-root changes. A synthetic setup test rejects FLAT to verify failure isolation and checks that it is never attempted when disabled. A one-time
depth-free ambient floor dispatch recordedmessage after the dispatch includes its size and level; it confirms command recording, not GPU completion.This pass declares no depth SRV and fabricates no depth, normals, occlusion or traced lighting. The uniform minimum can flatten contrast and brighten areas that should remain dark. Probe replacement, gray lift, personal launchers and frame-generation changes are excluded.
Validation, distinguished by revision:
ms_6_6. The run excluding that test passed. This is partial validation of that earlier stacked branch, not a pass of the exact command or latest isolated ambient revision.ce5a2ee.Ready for code review. The isolated floor-only recording remains pending; the maintainer has offered to compare
ce5a2ee. Per review, compare the same RT-off scene with the floor off and at0.3, with gray lift and probe replacement disabled, and confirm the missing-depth route and post-dispatch recording message in the enabled run. Existing clips combine several local lighting options and do not establish this patch’s isolated effect. Review complete recordings before reporting visual/performance results; keep recordings and game-derived data outside Git under the asset policy.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T09:19:42Z.
@t90 The missing-depth route fits the dark-surface case. I found one setup issue:
make()buildsFLATwith?before checking the option, so a driver rejecting that pipeline would take the existing ambient pass with it. I’ve prepared conditional pipeline creation locally and reconciled both sections of the ray-tracing docs.For the paired run, use a shot that reports the missing depth SRV and compare the same RT-off scene with the floor off and at
0.3. Confirmmissing depth SRV: using the depth-free ambient floorin the second run. That isolates the new pass from the other lighting changes.Imported from TaynanGT/Vice-Tay. Originally posted by t90 on 2026-11-27T09:35:12Z.
Thanks for catching the setup failure. The branch now creates FLAT only when requested, stores it as an optional pipeline, and logs/isolates its setup failure so the existing depth-based and reflection passes remain available. An unavailable FLAT pass returns before changing command roots.
A new setup regression test injects optional-shader rejection and checks that the existing passes survive; it also verifies that disabling the option makes zero FLAT compilation attempts. All 11 focused ambient tests and both workspace/all-targets Clippy configurations passed on this fix. The public Rust source was verified against that tested revision. Both ray-tracing documentation sections are retained.
The paired verification will follow your requested RT-off setup: same scene with the floor disabled versus 0.3, with the missing-depth fallback message confirmed in the enabled run and other lighting changes disabled. Keeping this draft until that isolated recording and full-video review are complete.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T09:44:01Z.
@t90 I queued the Windows CI for
c9f82c4. The injected rejection and zero-attempt case cover the setup concern. One detail for the recording:missing depth SRV: using the depth-free ambient floorcurrently fires before the optional pipeline check. A one-time line afterrun(flat, ...)would confirm that the renderer actually recorded the dispatch.Keep #206 out of the first floor A/B, since a matching depth view would select the depth-based path. The two patches apply together cleanly when it’s time to check that interaction.
Imported from TaynanGT/Vice-Tay. Originally posted by t90 on 2026-11-27T09:55:05Z.
Added the one-time
depth-free ambient floor dispatch recordedline immediately afterrun(flat, ...), with dispatch size and configured level. It confirms command recording rather than GPU completion. The same diagnostic is included in the dependent replacement branch; all 12 focused ambient tests passed on that stacked revision, and both public Rust files were verified against the tested local sources.The first floor pair will exclude #206 as requested. Its recovered depth path will be checked separately afterward.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T10:08:54Z.
@t90 Windows CI passed on
ce5a2ee. The new line records the dispatch size and level after the command is issued, so we can use it to identify the active path in the floor-only pair. I’ll use that revision for the comparison.Imported from TaynanGT/Vice-Tay. Originally posted by t90 on 2026-11-27T11:06:07Z.
Marking this ready for code review: all four Windows CI checks passed on
ce5a2ee, and the conditional pipeline setup and post-dispatch diagnostic are in place. The floor-only RT-off comparison remains pending as discussed: off versus0.3, gray lift and probe replacement disabled, excluding #206. The maintainer has offered to use this revision for that comparison. Existing combined-lighting and replacement-only clips do not establish the floor’s isolated effect.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T11:16:50Z.
@t90 I’ll use
ce5a2eefor the floor-only comparison: off and0.3, with the same scene, executable and lighting settings. The recorded dispatch marker will confirm the active path in the enabled run. That is the remaining check for how the floor affects the image.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:15:58Z.
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed