From 9db625af7977a91483a6fb35bd7cc1c034b8bda3 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Mon, 16 Jul 2012 20:07:59 +0200 Subject: [PATCH] Add a node mask bit for permanent lights (needed by Rembrandt) and select it in the lighting stage --- 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 9d64ddc52..0176b3768 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 | 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() );