Commit f54be78f authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX] - fixed light issue with coordinate labels.

parent 562ea746
......@@ -93,6 +93,9 @@ void WRulerOrtho::create()
state->setMode( GL_LIGHTING, osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED );
rulerGeode->addDrawable( geometry );
this->addChild( rulerGeode );
osg::StateSet* stateGroup = this->getOrCreateStateSet();
stateGroup->setMode( GL_LIGHTING, osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED );
}
void WRulerOrtho::addLabel( osg::Vec3 position, std::string text )
......
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