From b1dd2eed8c5fcddc33458d22a216453518d58515 Mon Sep 17 00:00:00 2001 From: timoore Date: Sat, 2 Aug 2008 22:32:55 +0000 Subject: [PATCH] Restore sky Don't clear BACKGROUND_BIT in the master camera's cull mask. ViewPartitionNode does that where needed. --- src/Main/renderer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 8dd73cae4..a952d0abb 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -763,8 +763,7 @@ FGRenderer::update( bool refresh_camera_settings ) { viewPartition->setVisibility(actual_visibility); simgear::GroundLightManager::instance()->update(mUpdateVisitor.get()); bool hotspots = fgGetBool("/sim/panel-hotspots"); - osg::Node::NodeMask cullMask = (~simgear::LIGHTS_BITS & ~simgear::PICK_BIT - & ~simgear::BACKGROUND_BIT); + osg::Node::NodeMask cullMask = ~simgear::LIGHTS_BITS & ~simgear::PICK_BIT; cullMask |= simgear::GroundLightManager::instance() ->getLightNodeMask(mUpdateVisitor.get()); if (hotspots)