]> git.mxchange.org Git - flightgear.git/blobdiff - src/Viewer/renderer.cxx
Restore point light in Rembrandt
[flightgear.git] / src / Viewer / renderer.cxx
index 054926c79e40ab47d58b5e7904200a710f5a675e..2446f12a33f6fc33b0fb5feecf6ab54d5da9c17d 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 );
+    lightCam->setCullMask( simgear::MODELLIGHT_BIT | simgear::LIGHTS_BITS );
     lightCam->setInheritanceMask( osg::CullSettings::ALL_VARIABLES & ~osg::CullSettings::CULL_MASK );
     lightCam->addChild( mDeferredRealRoot.get() );