GFX: Do not consult color map for alpha for AlphaOff meshes
This commit is contained in:
parent
f30e693138
commit
b236a005e8
1 changed files with 1 additions and 1 deletions
|
@ -770,7 +770,7 @@ void GfxOpenGL::drawEMIModelFace(const EMIModel *model, const EMIMeshFace *face)
|
|||
byte r = (byte)(model->_colorMap[index].r * lighting.x());
|
||||
byte g = (byte)(model->_colorMap[index].g * lighting.y());
|
||||
byte b = (byte)(model->_colorMap[index].b * lighting.z());
|
||||
byte a = (int)(model->_colorMap[index].a * alpha * _currentActor->getLocalAlpha(index));
|
||||
byte a = (int)(alpha * (model->_meshAlphaMode == Actor::AlphaReplace ? model->_colorMap[index].a * _currentActor->getLocalAlpha(index) : 255.f));
|
||||
glColor4ub(r, g, b, a);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue