mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-25 18:05:12 -04:00
0e3c53720b
Verifies the four PS1 semi-transparency modes, set-mask, mask check and texel STP at 4x internal resolution with PGXP depth on and off, directly and on the render thread, against the PS1 formulas and the software rasterizer (new gl_blend_accuracy_test). Finding: with the historical surface bases (fills and texels stored as k*255/31, everything else as k*8) single-layer blends are off by one 5-bit step in places (1312 of the test's checked pixels, e.g. B+F/4 over a fill). [video] accurate_blending = true stores every VRAM write as k*8 so GL's 8-bit blend truncated by the readback is exactly the PS1 arithmetic; whites of fills/texels then present as 248 like uploads already do. Default off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>