GRIM: Disable lighting for models that have lightingMode set to 0.
This commit is contained in:
parent
5ea33b4f7f
commit
2fe7ccb08e
6 changed files with 17 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue