From 3bef176676476bcd126703f5a545a12de35f2634 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 21 Aug 2022 12:29:04 +0200 Subject: [PATCH] Fix wrong blend ops for screen add blend func --- src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp b/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp index bff97b93..a17e7ef7 100644 --- a/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp +++ b/src/ObjLoading/Game/IW4/AssetLoaders/AssetLoaderMaterial.cpp @@ -668,7 +668,7 @@ namespace IW4 } 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); } else if (blendFunc == GDT_BLEND_FUNC_CUSTOM)