Commit 6b5c1e50 authored by hengli's avatar hengli

Disabled lighting for overlay.

parent 6536a4b6
......@@ -148,9 +148,11 @@ GLOverlayGeode::GLOverlayDrawable::drawImplementation(osg::RenderInfo&) const
return;
}
glMatrixMode(GL_MODELVIEW);
glDisable(GL_LIGHTING);
glPushMatrix();
glScalef(-1.0f, 1.0f, 1.0f);
glScalef(-1.0f, 1.0f, -1.0f);
glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
const std::string& data = mOverlay.data();
......@@ -401,6 +403,7 @@ GLOverlayGeode::GLOverlayDrawable::drawImplementation(osg::RenderInfo&) const
}
glPopMatrix();
glEnable(GL_LIGHTING);
}
osg::BoundingBox
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment