Commit 6b5c1e50 authored by hengli's avatar hengli

Disabled lighting for overlay.

parent 6536a4b6
...@@ -148,9 +148,11 @@ GLOverlayGeode::GLOverlayDrawable::drawImplementation(osg::RenderInfo&) const ...@@ -148,9 +148,11 @@ GLOverlayGeode::GLOverlayDrawable::drawImplementation(osg::RenderInfo&) const
return; return;
} }
glMatrixMode(GL_MODELVIEW);
glDisable(GL_LIGHTING);
glPushMatrix(); glPushMatrix();
glScalef(-1.0f, 1.0f, 1.0f); glScalef(-1.0f, 1.0f, -1.0f);
glRotatef(90.0f, 0.0f, 0.0f, 1.0f); glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
const std::string& data = mOverlay.data(); const std::string& data = mOverlay.data();
...@@ -401,6 +403,7 @@ GLOverlayGeode::GLOverlayDrawable::drawImplementation(osg::RenderInfo&) const ...@@ -401,6 +403,7 @@ GLOverlayGeode::GLOverlayDrawable::drawImplementation(osg::RenderInfo&) const
} }
glPopMatrix(); glPopMatrix();
glEnable(GL_LIGHTING);
} }
osg::BoundingBox 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