Fix compositing of billboards, they were forced to be additive

This commit is contained in:
Marianne Gagnon 2016-01-17 20:37:15 -05:00
parent 409862dbe2
commit ea02f232dc

View File

@ -1554,6 +1554,8 @@ void IrrDriver::renderTransparent()
ListAdditiveTransparent::getInstance());
}
//glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
for (unsigned i = 0; i < BillBoardList::getInstance()->size(); i++)
BillBoardList::getInstance()->at(i)->render();