From a72caad8bcfc6b45bbd301435342513ac965b663 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sat, 14 Jul 2012 21:30:18 +0200 Subject: [PATCH] Restore point light in Rembrandt --- src/Viewer/renderer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Viewer/renderer.cxx b/src/Viewer/renderer.cxx index 054926c79..2446f12a3 100644 --- a/src/Viewer/renderer.cxx +++ b/src/Viewer/renderer.cxx @@ -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() ); -- 2.39.5