Merge pull request #13635 from super626/v3.8

Enable depth write for transparent object
This commit is contained in:
pandamicro 2015-09-01 10:30:50 +08:00
commit 7f04a191c7
1 changed files with 3 additions and 3 deletions

View File

@ -350,9 +350,9 @@ void Mesh::draw(Renderer* renderer, float globalZOrder, const Mat4& transform, u
flags);
if (isTransparent && !forceDepthWrite)
_material->getStateBlock()->setDepthWrite(false);
else
// if (isTransparent && !forceDepthWrite)
// _material->getStateBlock()->setDepthWrite(false);
// else
_material->getStateBlock()->setDepthWrite(true);