1
0
Fork 0

Restore point light in Rembrandt

This commit is contained in:
Frederic Bouvier 2012-07-14 21:30:18 +02:00
parent c1137f371d
commit a72caad8bc

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 );
lightCam->setCullMask( simgear::MODELLIGHT_BIT | simgear::LIGHTS_BITS );
lightCam->setInheritanceMask( osg::CullSettings::ALL_VARIABLES & ~osg::CullSettings::CULL_MASK );
lightCam->addChild( mDeferredRealRoot.get() );