From: Frederic Bouvier Date: Mon, 16 Jul 2012 18:07:59 +0000 (+0200) Subject: Add a node mask bit for permanent lights (needed by Rembrandt) and select it in the... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9db625af7977a91483a6fb35bd7cc1c034b8bda3;p=flightgear.git Add a node mask bit for permanent lights (needed by Rembrandt) and select it in the lighting stage --- 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() );