Fix wrong blend ops for screen add blend func

This commit is contained in:
Jan 2022-08-21 12:29:04 +02:00
parent 457c3518ad
commit 3bef176676

View File

@ -668,7 +668,7 @@ namespace IW4
} }
else if (blendFunc == GDT_BLEND_FUNC_SCREEN_ADD) else if (blendFunc == GDT_BLEND_FUNC_SCREEN_ADD)
{ {
SetBlendFunc(BlendOp_e::ADD, CustomBlendFunc_e::INV_DST_ALPHA, CustomBlendFunc_e::ONE); SetBlendFunc(BlendOp_e::ADD, CustomBlendFunc_e::INV_DST_COLOR, CustomBlendFunc_e::ONE);
SetSeparateAlphaBlendFunc(BlendOp_e::DISABLE, CustomBlendFunc_e::ONE, CustomBlendFunc_e::ZERO); SetSeparateAlphaBlendFunc(BlendOp_e::DISABLE, CustomBlendFunc_e::ONE, CustomBlendFunc_e::ZERO);
} }
else if (blendFunc == GDT_BLEND_FUNC_CUSTOM) else if (blendFunc == GDT_BLEND_FUNC_CUSTOM)