Possibly a fix for most transparency issues
parent
11bfcc6d53
commit
b158318e83
|
@ -3471,7 +3471,7 @@ void CEngine::Draw3DScene()
|
|||
objectRenderer->SetTransparency(TransparencyMode::NONE);
|
||||
|
||||
objectRenderer->SetFog(fogStart, fogEnd, { fogColor.r, fogColor.g, fogColor.b });
|
||||
objectRenderer->SetAlphaScissor(0.5f);
|
||||
objectRenderer->SetAlphaScissor(0.0f);
|
||||
objectRenderer->SetShadowParams(m_shadowRegions, shadowParams);
|
||||
|
||||
bool transparent = false;
|
||||
|
@ -3523,6 +3523,11 @@ void CEngine::Draw3DScene()
|
|||
continue;
|
||||
}
|
||||
|
||||
if (p3.state & ENG_RSTATE_ALPHA)
|
||||
objectRenderer->SetAlphaScissor(0.2f);
|
||||
else
|
||||
objectRenderer->SetAlphaScissor(0.0f);
|
||||
|
||||
if ((p3.state & ENG_RSTATE_TCOLOR_BLACK)
|
||||
|| (p3.state & ENG_RSTATE_TCOLOR_WHITE)
|
||||
|| (p3.state & ENG_RSTATE_TCOLOR_ALPHA))
|
||||
|
|
Loading…
Reference in New Issue