Browse Source

Disabled lighting for overlay.

QGC4.4
hengli 13 years ago
parent
commit
6b5c1e503c
  1. 5
      src/ui/map3D/GLOverlayGeode.cc

5
src/ui/map3D/GLOverlayGeode.cc

@ -148,9 +148,11 @@ GLOverlayGeode::GLOverlayDrawable::drawImplementation(osg::RenderInfo&) const @@ -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 @@ -401,6 +403,7 @@ GLOverlayGeode::GLOverlayDrawable::drawImplementation(osg::RenderInfo&) const
}
glPopMatrix();
glEnable(GL_LIGHTING);
}
osg::BoundingBox

Loading…
Cancel
Save