EMI: Enable alpha blending if the mesh face flags has the 16th bit set.
This fixes drawing of the shadow mesh in the set unc when Guybrush is under the lights.
This commit is contained in:
parent
9a87fa5d51
commit
055f742ccc
4 changed files with 10 additions and 0 deletions
|
@ -760,6 +760,8 @@ void GfxOpenGL::drawEMIModelFace(const EMIModel *model, const EMIMeshFace *face)
|
|||
glEnable(GL_TEXTURE_2D);
|
||||
else
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
if (face->_flags & EMIMeshFace::kAlphaBlend)
|
||||
glEnable(GL_BLEND);
|
||||
|
||||
glBegin(GL_TRIANGLES);
|
||||
float dim = 1.0f - _dimLevel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue