Fixed shadows warnigns

This commit is contained in:
Robert Osfield
2016-05-26 10:35:33 +01:00
parent 304c048d84
commit 80e318ce15
4 changed files with 14 additions and 16 deletions

View File

@@ -326,10 +326,10 @@ bool DePee::createHUD()
geom->addPrimitiveSet(new osg::DrawArrays(GL_QUADS,0,4));
osg::StateSet* stateset = geom->getOrCreateStateSet();
stateset->setMode(GL_BLEND,osg::StateAttribute::ON);
osg::StateSet* ss = geom->getOrCreateStateSet();
ss->setMode(GL_BLEND,osg::StateAttribute::ON);
stateset->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
ss->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
//geode->addDrawable(geom);
}