Source:| ZERO | ONE | SRCALPHA | INVSRCALPHA | DESTALPHA | INVDESTALPHA ------------+-------+-----+-----------+-------------+-----------+------------- Destination | | | | | | | | | | | | ZERO| # | # | # | # | # | # ONE| # | # | # | . | # | . SRCALPHA| # | # | . | # | . | . INVSRCALPHA| # | . | # | . | . | . DESTSRCALPHA| # | # | . | . | . | # INVDESTALPHA| # | . | . | . | # | .
Cdst = (A - B)*C + D
Where A, B and D may be one of Csrc, Cdst or zero and C may be Asrc, Adst or a fixed value. Compared this with the standard blending equation, shown here:
Cdst = BLENDSRC*Csrc + BLENDDST*Cdst
Whilst this restricts the GS from achieving all the blend modes in the above table, it also allows it to achieve some extra modes such as subtractive (as opposed to additive) blending. Refer to the GS manual for further details (the above equations do not cover all relevant details, such as the alpha test, destination alpha test and PABE flag).
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |