]> git.mxchange.org Git - flightgear.git/commitdiff
Add a node mask bit for permanent lights (needed by Rembrandt) and select it in the...
authorFrederic Bouvier <fredfgfs01@free.fr>
Mon, 16 Jul 2012 18:07:59 +0000 (20:07 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Mon, 16 Jul 2012 18:07:59 +0000 (20:07 +0200)
src/Viewer/renderer.cxx

index 9d64ddc523495987283918507799751b1ae4ce61..0176b37689785f5712f24d9e3b691e42ca37fe8b 100644 (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::PANEL2D_BIT );
+    lightCam->setCullMask( simgear::MODELLIGHT_BIT | simgear::PANEL2D_BIT | simgear::PERMANENTLIGHT_BIT);
     lightCam->setInheritanceMask( osg::CullSettings::ALL_VARIABLES & ~osg::CullSettings::CULL_MASK );
     lightCam->addChild( mDeferredRealRoot.get() );