Window glass: VICTORY_GLASS_DIRT_OPACITY=<float> removes the grey drips #194

Manually merged
github merged 2 commits from github-bot/gh-194 into main 2026-12-02 23:01:31 +00:00 AGit
Owner

@⁠kyle41313 on GitHub · 2026-12-02 14:08 UTC · original
kyle41313:fix/glass-drips → main · +136 −0 · 5 files · 2 commits · merged 2026-12-02 22:57 UTC

Fixes #190. Builds on #193: this branch contains its commit (it uses pin_const), so merge that one first or review only the second commit here.

Change. For the house glass pixel program b37565055f2f7d3b only, the clamped dirt opacity at console offset 0x9b8 becomes the given constant. Off unless set; in the shader cache key.

Tested. RX 9070 XT, RADV, Proton Experimental 11.0, ray tracing off. In game at 0.4: no drips on the desk window, haze and specks kept. Compiles on d044248 without warnings.

Limits. A workaround: it replaces the texture's opacity channel instead of repairing it. The patio slider and bathroom window keep their smears; another program draws at least the slider's.

**@⁠kyle41313** on GitHub · 2026-12-02 14:08 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/194) `kyle41313:fix/glass-drips` → `main` · +136 −0 · 5 files · 2 commits · merged 2026-12-02 22:57 UTC Fixes #190. Builds on #193: this branch contains its commit (it uses `pin_const`), so merge that one first or review only the second commit here. **Change.** For the house glass pixel program `b37565055f2f7d3b` only, the clamped dirt opacity at console offset 0x9b8 becomes the given constant. Off unless set; in the shader cache key. **Tested.** RX 9070 XT, RADV, Proton Experimental 11.0, ray tracing off. In game at 0.4: no drips on the desk window, haze and specks kept. Compiles on d044248 without warnings. **Limits.** A workaround: it replaces the texture's opacity channel instead of repairing it. The patio slider and bathroom window keep their smears; another program draws at least the slider's.
The glass program (b37565055f2f7d3b) picks a neighboring light-grid cell from its
lane number plus the frame counter (0x574c). Its waves are 32 lanes on the console and
64 here, where v_mbcnt_lo gives 32 for the whole upper half, so half the rows took one
cell and flipped every frame: dark stripes that blink. With the switch the sum is 0 at
0x574c, as the live pin that removed stripes and blinking in a running game. Tested
in game with only this switch on: no stripes, no blinking, the glass otherwise drawn.
Off by default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The glass program (b37565055f2f7d3b) reads its dirt texture at 0x5b0; the texture's
fourth channel, clamped at 0x9b8, sets how much dirt covers each pixel, and here it
draws grey vertical drips that console footage of the same window, under a similar sun,
does not show (even milky haze with specks). With the switch the clamped value is the
given constant, as the live pin that removed the drips in a running game; 0.4 keeps the
panes' average brightness, and the color channels (the specks) stay. Not the cause:
stand-in textures, the BC7 dictionary reading, shadows. Tested in game at 0.4 at the desk
window. The patio slider is drawn by another program and keeps its drips. Off unless set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 14:10:16 +00:00
github manually merged commit d3dbb1a996 into main 2026-12-02 23:01:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.