]> git.mxchange.org Git - flightgear.git/commitdiff
Restore sky
authortimoore <timoore>
Sat, 2 Aug 2008 22:32:55 +0000 (22:32 +0000)
committertimoore <timoore>
Sat, 2 Aug 2008 22:32:55 +0000 (22:32 +0000)
Don't clear BACKGROUND_BIT in the master camera's cull
mask. ViewPartitionNode does that where needed.

src/Main/renderer.cxx

index 8dd73cae4b0e35c091a8cabede3b03a62ccfbf0e..a952d0abb5fc2737ce4dbb19f1369e94a0d9e416 100644 (file)
@@ -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)