]> git.mxchange.org Git - flightgear.git/commitdiff
Restore 2D panels in Rembrandt
authorFrederic Bouvier <fredfgfs01@free.fr>
Sat, 14 Jul 2012 22:09:05 +0000 (00:09 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sat, 14 Jul 2012 22:09:05 +0000 (00:09 +0200)
src/Viewer/renderer.cxx

index 2446f12a33f6fc33b0fb5feecf6ab54d5da9c17d..ffc6c21eb5a3cc42d8cdaeaf8ae14f0a64c819dc 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::LIGHTS_BITS );
+    lightCam->setCullMask( simgear::MODELLIGHT_BIT | simgear::LIGHTS_BITS | simgear::PANEL2D_BIT );
     lightCam->setInheritanceMask( osg::CullSettings::ALL_VARIABLES & ~osg::CullSettings::CULL_MASK );
     lightCam->addChild( mDeferredRealRoot.get() );