EMI: Enable alpha blending for global alpha values of actors
This fixes the problem, that all actors with a global alpha value < 1.0f were not drawn with the correct transparency.
This commit is contained in:
parent
1b5d84a713
commit
11fee3d1d4
2 changed files with 2 additions and 2 deletions
|
@ -752,7 +752,7 @@ void GfxOpenGL::drawEMIModelFace(const EMIModel *model, const EMIMeshFace *face)
|
|||
glEnable(GL_TEXTURE_2D);
|
||||
else
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
if (face->_flags & EMIMeshFace::kAlphaBlend || face->_flags & EMIMeshFace::kUnknownBlend || _currentActor->hasLocalAlpha())
|
||||
if (face->_flags & EMIMeshFace::kAlphaBlend || face->_flags & EMIMeshFace::kUnknownBlend || _currentActor->hasLocalAlpha() || _alpha < 1.0f)
|
||||
glEnable(GL_BLEND);
|
||||
|
||||
glBegin(GL_TRIANGLES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue