From c2535519e881d72d88c4daa51c35436e5769a87e Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Mon, 27 May 2019 20:20:20 +0200 Subject: [PATCH] - fix blend mode for the fireballs --- src/rendering/polyrenderer/drawers/poly_triangle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rendering/polyrenderer/drawers/poly_triangle.cpp b/src/rendering/polyrenderer/drawers/poly_triangle.cpp index d712c3b96..6b542f962 100644 --- a/src/rendering/polyrenderer/drawers/poly_triangle.cpp +++ b/src/rendering/polyrenderer/drawers/poly_triangle.cpp @@ -401,6 +401,10 @@ void PolyTriangleThreadData::SetRenderStyle(FRenderStyle style) { drawargs.SetStyle(TriBlendMode::Normal); } + else if (style.BlendOp == STYLEOP_Add && style.SrcAlpha == STYLEALPHA_SrcCol && style.DestAlpha == STYLEALPHA_One) + { + drawargs.SetStyle(TriBlendMode::SrcColor); + } else { if (style == LegacyRenderStyles[STYLE_Normal]) drawargs.SetStyle(TriBlendMode::Normal);