Include: lobomfz/VIctory-xmem 5a60834 (De-christmas Grass) #21

Open
opened 2026-12-01 10:32:22 +00:00 by Rojikku · 1 comment
Rojikku commented 2026-12-01 10:32:22 +00:00 (Migrated from github.com)
Contributor

Imported from Fayberr/Victory-United. Originally posted by Rojikku on 2026-12-01T10:32:22Z.


github.com/lobomfz/VIctory-xmem@5a60834532

Licence of that code

GPL-3.0

What it fixes, and what you measured

This patch isn't that fix TBH. This is just based on it.
Driving in the Ch2 area, near the extended gun shop, near the community center, I noticed red and green splotches in the grass. I also occasionally see red/blue reflections which I assumed were cop light reflections from somewhere. However, after the fix with #18, I realized it was a separate issue.

This resolved it in a short test run for me, but I need to sleep, so haven't done an in-depth test:

ambient-leftover-takes-estimate-hue.patch

Claude's Notes:
Red/green "lights" in shaded grass with ray tracing off: the probes' leftover light takes the estimate's hue** (ambient-leftover-takes-estimate-hue.diff, VICTORY_AMBIENT_HUE=1, off unless set)

With the structure builder off, the screen-probe resolve leaves the probes' memory, which can be any colour. The ambient stand-in's raise keeps that leftover up to 4× the estimate. The two existing filters drop magenta and blue leftovers, but red and green ones got through. In game: grass and leaves in the shade lit in red/green patches that flare while the camera moves and fade when it stops; also red tints in glass.

With the switch, after the two filters, the leftover keeps its brightness (so the sky's light outdoors stays) but takes the estimate's hue (grey where the estimate is black). Bounds and filters unchanged. It's compiled at runtime by the stand-in, so the shader cache and warm aren't affected.

Checked in game with the switch on: the patches are gone. Left off by default in the diff so you can judge it.

Claude's Attribution:
This is our own approach, but it builds on earlier work by others. Other forks already drop bad leftover colours one by one. erry's is_garbage_probe (coastingVI), later taken up by dfmbrollins and lobomfz, drops magenta, plus neon green and electric blue at higher levels.

Fayberr has the magenta and blue filters; nobody filters red. Ours keeps the leftover's brightness but replaces its hue with the estimate's, so it covers every colour at once. I found no fork that does this.

Rules

  • It contains no game files or data and no leaked, stolen or pirated material.
<!-- greyfinch-sync:Fayberr/Victory-United:issue:6718210606 --> Imported from [Fayberr/Victory-United](https://github.com/Fayberr/Victory-United/issues/21). Originally posted by [Rojikku](https://github.com/Rojikku) on 2026-12-01T10:32:22Z. --- ### Link to the pull request or commit https://github.com/lobomfz/VIctory-xmem/commit/5a60834532cd74a015e864bde841ddfba6fac1c2 ### Licence of that code GPL-3.0 ### What it fixes, and what you measured This patch isn't that fix TBH. This is just based on it. Driving in the Ch2 area, near the extended gun shop, near the community center, I noticed red and green splotches in the grass. I also occasionally see red/blue reflections which I *assumed* were cop light reflections from somewhere. However, after the fix with #18, I realized it was a separate issue. This resolved it in a short test run for me, but I need to sleep, so haven't done an in-depth test: [ambient-leftover-takes-estimate-hue.patch](https://github.com/user-attachments/files/35676472/ambient-leftover-takes-estimate-hue.patch) Claude's Notes: Red/green "lights" in shaded grass with ray tracing off: the probes' leftover light takes the estimate's hue** (`ambient-leftover-takes-estimate-hue.diff`, `VICTORY_AMBIENT_HUE=1`, off unless set) With the structure builder off, the screen-probe resolve leaves the probes' memory, which can be any colour. The ambient stand-in's `raise` keeps that leftover up to 4× the estimate. The two existing filters drop magenta and blue leftovers, but red and green ones got through. In game: grass and leaves in the shade lit in red/green patches that flare while the camera moves and fade when it stops; also red tints in glass. With the switch, after the two filters, the leftover keeps its brightness (so the sky's light outdoors stays) but takes the estimate's hue (grey where the estimate is black). Bounds and filters unchanged. It's compiled at runtime by the stand-in, so the shader cache and warm aren't affected. Checked in game with the switch on: the patches are gone. Left off by default in the diff so you can judge it. Claude's Attribution: This is our own approach, but it builds on earlier work by others. Other forks already drop bad leftover colours one by one. erry's is_garbage_probe (coastingVI), later taken up by dfmbrollins and lobomfz, drops magenta, plus neon green and electric blue at higher levels. Fayberr has the magenta and blue filters; nobody filters red. Ours keeps the leftover's brightness but replaces its hue with the estimate's, so it covers every colour at once. I found no fork that does this. ### Rules - [x] It contains no game files or data and no leaked, stolen or pirated material.
Fayberr commented 2026-12-01 11:14:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Fayberr/Victory-United. Originally posted by Fayberr on 2026-12-01T11:14:53Z.


Thanks for tracking this down and sharing the patch. Landed on dev behind VICTORY_AMBIENT_HUE=1 (off by default for now):
github.com/Fayberr/Victory-United@20d68761f

I'll test it in shaded grass on Windows as well before deciding whether to enable it by default.

<!-- greyfinch-sync:Fayberr/Victory-United:comment:7309375268 --> Imported from [Fayberr/Victory-United](https://github.com/Fayberr/Victory-United/issues/21#issuecomment-7309375268). Originally posted by [Fayberr](https://github.com/Fayberr) on 2026-12-01T11:14:53Z. --- Thanks for tracking this down and sharing the patch. Landed on `dev` behind `VICTORY_AMBIENT_HUE=1` (off by default for now): https://github.com/Fayberr/Victory-United/commit/20d68761f I'll test it in shaded grass on Windows as well before deciding whether to enable it by default.
Sign in to join this conversation.
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
Fayberr/Victory-United#21
No description provided.