GRIM: Disable lighting for models that have lightingMode set to 0.

This commit is contained in:
Joni Vähämäki 2011-07-13 14:09:32 +03:00
parent 5ea33b4f7f
commit 2fe7ccb08e
6 changed files with 17 additions and 0 deletions

View file

@ -526,6 +526,10 @@ void GfxOpenGL::drawHierachyNode(const Model::HierNode *node) {
node->_sibling->draw();
}
void GfxOpenGL::enableLights() {
glEnable(GL_LIGHTING);
}
void GfxOpenGL::disableLights() {
glDisable(GL_LIGHTING);
}