Ambient: drop violet probe garbage before the raise (purple blotch on lit paper) #29

Merged
Ahyildiz merged 1 commit from upstream-pr/29 into main 2026-11-27 09:45:58 +00:00
Ahyildiz commented 2026-11-27 09:29:35 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Ahyildiz on 2026-11-27T09:29:35Z.


What it fixes

A saturated purple-blue glow on bright lit surfaces: seen on a sheet of music on the wall right of the
window in the prison-cell cutscene (Series S, DLSS off, RTX 5080). The same frame on VIctory-Belobug-AMD shows
plain paper.

Cause

The probes' resolve (CS_ScreenProbes_TemporalResolve) can leave magenta/violet leftovers from other memory
in the light image. raise in ambient.rs caps what it keeps of that light by luminance only, which
weights blue at 0.07, so a blue-heavy leftover passes the cap and max(was, found) keeps it.

VIctory-Belobug-AMD already drops magenta leftovers at this point ("Filter magenta garbage probes"). This
ports that line and adds one for the bluer kind (blue over 2.5x green and over red), which the first line
alone left as a faint violet. Sky light (green above 0.4x blue) and sunsets (low blue) are not touched.

How it was checked

  • Unattended runs of the same cutscene (VICTORY_KEYS start-screen presses, VICTORY_CAPTURE_FRAMES), the
    launcher's settings from play-foxhound.ps1, DLSS and frame generation off, warm shader cache.
  • Bisection before the fix: VICTORY_AMBIENT_SPECULAR=0, VICTORY_AMBIENT_AIR=0 and all VICTORY_AMBIENT*
    off do not remove the glow (with the raise off it is stronger), so it is the title's leftover, not the
    reflection or air estimates.
  • With the first (magenta) line only: mostly gone, faint violet left. With both lines: gone, in two runs.
  • Frame time unchanged: median ~35 ms (25-27 fps in that scene), same as before the change.
  • Tested on the tree before #21 was merged; this branch is rebased on current main and touches only the
    shader string in ambient.rs. Not run through clippy/tests locally (no Rust code changed).

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5524311887 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/29). Originally posted by [Ahyildiz](https://github.com/Ahyildiz) on 2026-11-27T09:29:35Z. --- ## What it fixes A saturated **purple-blue glow on bright lit surfaces**: seen on a sheet of music on the wall right of the window in the prison-cell cutscene (Series S, DLSS off, RTX 5080). The same frame on VIctory-Belobug-AMD shows plain paper. ## Cause The probes' resolve (`CS_ScreenProbes_TemporalResolve`) can leave magenta/violet leftovers from other memory in the light image. `raise` in `ambient.rs` caps what it keeps of that light by **luminance only**, which weights blue at 0.07, so a blue-heavy leftover passes the cap and `max(was, found)` keeps it. VIctory-Belobug-AMD already drops magenta leftovers at this point ("Filter magenta garbage probes"). This ports that line and adds one for the bluer kind (blue over 2.5x green and over red), which the first line alone left as a faint violet. Sky light (green above 0.4x blue) and sunsets (low blue) are not touched. ## How it was checked - Unattended runs of the same cutscene (`VICTORY_KEYS` start-screen presses, `VICTORY_CAPTURE_FRAMES`), the launcher's settings from `play-foxhound.ps1`, DLSS and frame generation off, warm shader cache. - Bisection before the fix: `VICTORY_AMBIENT_SPECULAR=0`, `VICTORY_AMBIENT_AIR=0` and all `VICTORY_AMBIENT*` off do **not** remove the glow (with the raise off it is stronger), so it is the title's leftover, not the reflection or air estimates. - With the first (magenta) line only: mostly gone, faint violet left. With both lines: gone, in two runs. - Frame time unchanged: median ~35 ms (25-27 fps in that scene), same as before the change. - Tested on the tree before #21 was merged; this branch is rebased on current `main` and touches only the shader string in `ambient.rs`. Not run through clippy/tests locally (no Rust code changed). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!29
No description provided.