mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 10:40:39 +01:00
Replace Cs*As + Cd*(1 - As) with Cs*As - Cd*(As - 1). Replace Cs*F + Cd*(1 - F) with Cs*F - Cd*(F - 1). As - 1 or F - 1 subtraction is only done for the dual source output (hw blending part) since we are changing the equation. Af will be replaced with As in shader and send it to dual source output. Also check if A*Alpha in the shader overflows, if it does then adjust the alpha that is sent for HW blending further to compensate.