Updated the bin number to be 100 for the logo overlay to force it to draw later.

This commit is contained in:
Robert Osfield
2005-11-09 09:30:16 +00:00
parent a70768b6e9
commit af83527622

View File

@@ -67,7 +67,12 @@ class Logos: public osg::Drawable
sset->setMode( GL_BLEND, osg::StateAttribute::ON );
sset->setMode( GL_DEPTH_TEST, osg::StateAttribute::OFF );
sset->setTextureMode( 0, GL_TEXTURE_2D, osg::StateAttribute::OFF );
#if 1
// for now we'll crudely set the bin number to 100 to force it to draw later and ontop of the scene
sset->setRenderBinDetails( 100 , "RenderBin" );
#else
sset->setRenderBinDetails( StateSet::TRANSPARENT_BIN + 1 , "RenderBin" );
#endif
setStateSet( sset );
viewport = new osg::Viewport;
setCullCallback( new logosCullCallback );