Change shaded blend mode use srcalpha and destalpha.
Fix blending error in add/sub/revsub
This commit is contained in:
parent
144c7f4139
commit
2ba2dc7611
6 changed files with 68 additions and 69 deletions
|
|
@ -85,6 +85,7 @@ public:
|
|||
SSAVec4i blend_sub(SSAVec4i fg, SSAVec4i bg, SSAInt srcalpha, SSAInt destalpha);
|
||||
SSAVec4i blend_revsub(SSAVec4i fg, SSAVec4i bg, SSAInt srcalpha, SSAInt destalpha);
|
||||
SSAVec4i blend_alpha_blend(SSAVec4i fg, SSAVec4i bg);
|
||||
SSAVec4i blend_stencil(SSAVec4i color, SSAInt fgalpha, SSAVec4i bg, SSAInt srcalpha, SSAInt destalpha);
|
||||
|
||||
// Calculates the final alpha values to be used when combined with the source texture alpha channel
|
||||
SSAInt calc_blend_bgalpha(SSAVec4i fg, SSAInt destalpha);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue