1
0
Fork 0

Restore 2D panels in Rembrandt

This commit is contained in:
Frederic Bouvier 2012-07-15 00:09:05 +02:00
parent a72caad8bc
commit 7b4287e151

View file

@ -1275,7 +1275,7 @@ FGRenderer::buildLightingLightsPass(CameraInfo* info, FGRenderingPipeline::Pass*
lightCam->setViewMatrix(osg::Matrix::identity());
lightCam->setProjectionMatrix(osg::Matrix::identity());
lightCam->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
lightCam->setCullMask( simgear::MODELLIGHT_BIT | simgear::LIGHTS_BITS );
lightCam->setCullMask( simgear::MODELLIGHT_BIT | simgear::LIGHTS_BITS | simgear::PANEL2D_BIT );
lightCam->setInheritanceMask( osg::CullSettings::ALL_VARIABLES & ~osg::CullSettings::CULL_MASK );
lightCam->addChild( mDeferredRealRoot.get() );