ambient: keep VICTORY_AMBIENT_RT opt-in with ray tracing (#61) #75
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!75
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-75"
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?
@BlueCatsz on GitHub · 2026-12-01 16:02 UTC · original
BlueCatsz:fix/ambient-rt-opt-in→main· +17 −6 · 1 files · 1 commits · closed without mergingFixes #61.
Summary
VICTORY_BVH_BUILDER=1fallback incrates/victory-gpu/src/ambient.rs(rt_band()) soVICTORY_AMBIENT_RTstays opt-in when unset, matching its existing doc comment (unset: off, the title's own light whenever the builder runs).rt_band_from(Option<&str>)so unset/"0"/band parsing can be covered directly by deterministic unit tests without mutating process-wideOnceLockstate.ambient::tests::the_band_with_raysforparse_band("0")andrt_band_from(None | Some("0") | Some("0.7,1.5")).Why
With hardware ray-tracing (
VICTORY_BVH_BUILDER=1, on by default inrun.sh),rt_band()fell back to"0.7,1.5"and ran all ambient stand-in passes (Resolve,Reflected*,Air) on top of the title's own traced indirect light. In dimly lit indoor scenes this crushed indirect lighting and turned interiors near-black, whereas settingVICTORY_AMBIENT_RT=0restored expected indoor lighting. Users on the software node test who still need the band can passVICTORY_AMBIENT_RT=0.7,1.5explicitly.Verification
cargo --offline run -p xtask -- policy --staged(asset policy: 1 files ok)cargo --offline test -p xtask -- switches(3 passed; 0 failed)PKG=victory-gpu ./build.sh clippy --offline --lib(0warnings inambient.rs)./build.sh(releaseprofilevictory.execompiled cleanly)ambient::tests::underproton-cachyos-slr+vkd3d-protonon RX 9070 XT (RADV GFX1201): 4 passed, 0 failed (roles_by_name,settings,the_band_with_rays,the_passes_build)0.7,1.5rendered properly lit withVICTORY_AMBIENT_RT=0(zerostand-inpasses logged).AI-assisted contribution (verified locally and on RX 9070 XT hardware).
@BlueCatsz on GitHub · 2026-12-01 21:35 UTC · original
Landed on
mainvia cherry-pick commit1ccb580— closing this PR as completed. Thanks for pulling it in!Pull request closed