Add optional scene-only gray shadow lift before UI composition #852

Merged
t90 merged 1 commit from upstream-pr/852 into main 2026-11-28 19:39:38 +00:00
t90 commented 2026-11-28 07:43:30 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by t90 on 2026-11-28T07:43:30Z.


Very dark scene regions lose visibility even with the ambient-light estimate enabled. VICTORY_SHADOW_LIFT= provides an optional display-space lift of dark scene pixels before the interface plane is blended.

The setting defaults to zero, accepts finite decimal values clamped to 0..0.3, and preserves existing output when disabled. The gameplay setting used for the current comparison is 0.12 (40% of the allowed maximum). This makes dark regions easier to see; it does not reconstruct missing indirect-light detail. The UI plane is blended afterward and is not lifted.

Validation:

  • @t90 reported that the combined gray and ambient workaround improved shadow visibility in gameplay.
  • The GPU regression checks the disabled baseline, dark-scene lift, bright pixels, and interface preservation.
  • Standalone WARP shadow-lift/UI test passed; asset policy:294 files passed.

This PR is independent of the neutral diffuse-probe workaround. It includes no game-derived fixtures, captures, local launcher defaults, or personal paths.

Local check detail: both workspace Clippy configurations (--all-targets, with and without --all-features) pass with command-line allowances for three lint classes already failing in unchanged upstream code: manual_is_multiple_of (descriptor.rs and shadow.rs), let_and_return (shader emit tests), and some_filter (gameinput.rs). No lint allowances were added to source or CI. Strict upstream CI can still report those existing failures. The complete workspace test suite was not run locally; the listed focused GPU/correctness tests were run on these isolated branches.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5538005602 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/852). Originally posted by [t90](https://github.com/t90) on 2026-11-28T07:43:30Z. --- Very dark scene regions lose visibility even with the ambient-light estimate enabled. VICTORY_SHADOW_LIFT=<amount> provides an optional display-space lift of dark scene pixels before the interface plane is blended. The setting defaults to zero, accepts finite decimal values clamped to 0..0.3, and preserves existing output when disabled. The gameplay setting used for the current comparison is 0.12 (40% of the allowed maximum). This makes dark regions easier to see; it does not reconstruct missing indirect-light detail. The UI plane is blended afterward and is not lifted. Validation: - @t90 reported that the combined gray and ambient workaround improved shadow visibility in gameplay. - The GPU regression checks the disabled baseline, dark-scene lift, bright pixels, and interface preservation. - Standalone WARP shadow-lift/UI test passed; asset policy:294 files passed. This PR is independent of the neutral diffuse-probe workaround. It includes no game-derived fixtures, captures, local launcher defaults, or personal paths. Local check detail: both workspace Clippy configurations (--all-targets, with and without --all-features) pass with command-line allowances for three lint classes already failing in unchanged upstream code: manual_is_multiple_of (descriptor.rs and shadow.rs), let_and_return (shader emit tests), and some_filter (gameinput.rs). No lint allowances were added to source or CI. Strict upstream CI can still report those existing failures. The complete workspace test suite was not run locally; the listed focused GPU/correctness tests were run on these isolated branches.
Sign in to join this conversation.
No reviewers
No labels
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.

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