mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-05 17:01:12 +00:00
- fix blend mode for the fireballs
This commit is contained in:
parent
9f8cd68211
commit
c2535519e8
1 changed files with 4 additions and 0 deletions
|
@ -401,6 +401,10 @@ void PolyTriangleThreadData::SetRenderStyle(FRenderStyle style)
|
||||||
{
|
{
|
||||||
drawargs.SetStyle(TriBlendMode::Normal);
|
drawargs.SetStyle(TriBlendMode::Normal);
|
||||||
}
|
}
|
||||||
|
else if (style.BlendOp == STYLEOP_Add && style.SrcAlpha == STYLEALPHA_SrcCol && style.DestAlpha == STYLEALPHA_One)
|
||||||
|
{
|
||||||
|
drawargs.SetStyle(TriBlendMode::SrcColor);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (style == LegacyRenderStyles[STYLE_Normal]) drawargs.SetStyle(TriBlendMode::Normal);
|
if (style == LegacyRenderStyles[STYLE_Normal]) drawargs.SetStyle(TriBlendMode::Normal);
|
||||||
|
|
Loading…
Reference in a new issue