Include: lobomfz/VIctory-xmem 5a60834 (De-christmas Grass) #21
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Fayberr/Victory-United. Originally posted by Rojikku on 2026-12-01T10:32:22Z.
Link to the pull request or commit
github.com/lobomfz/VIctory-xmem@5a60834532Licence 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
raisekeeps 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
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
devbehindVICTORY_AMBIENT_HUE=1(off by default for now):github.com/Fayberr/Victory-United@20d68761fI'll test it in shaded grass on Windows as well before deciding whether to enable it by default.