mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fix alpha tested polys not fading
This commit is contained in:
parent
234192f9ed
commit
b9c3856c09
1 changed files with 1 additions and 1 deletions
|
@ -587,7 +587,7 @@ namespace TEN::Renderer
|
|||
|
||||
static inline BlendMode GetBlendModeFromAlpha(BlendMode blendMode, float alpha)
|
||||
{
|
||||
if (alpha < ALPHA_BLEND_THRESHOLD && (blendMode == BlendMode::Opaque || blendMode == BlendMode::FastAlphaBlend))
|
||||
if (alpha < ALPHA_BLEND_THRESHOLD && (blendMode == BlendMode::Opaque || blendMode == BlendMode::AlphaTest || blendMode == BlendMode::FastAlphaBlend))
|
||||
return BlendMode::AlphaBlend;
|
||||
|
||||
return blendMode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue