1
0
Fork 0

Restore sky

Don't clear BACKGROUND_BIT in the master camera's cull
mask. ViewPartitionNode does that where needed.
This commit is contained in:
timoore 2008-08-02 22:32:55 +00:00
parent 444de56679
commit b1dd2eed8c

View file

@ -763,8 +763,7 @@ FGRenderer::update( bool refresh_camera_settings ) {
viewPartition->setVisibility(actual_visibility); viewPartition->setVisibility(actual_visibility);
simgear::GroundLightManager::instance()->update(mUpdateVisitor.get()); simgear::GroundLightManager::instance()->update(mUpdateVisitor.get());
bool hotspots = fgGetBool("/sim/panel-hotspots"); bool hotspots = fgGetBool("/sim/panel-hotspots");
osg::Node::NodeMask cullMask = (~simgear::LIGHTS_BITS & ~simgear::PICK_BIT osg::Node::NodeMask cullMask = ~simgear::LIGHTS_BITS & ~simgear::PICK_BIT;
& ~simgear::BACKGROUND_BIT);
cullMask |= simgear::GroundLightManager::instance() cullMask |= simgear::GroundLightManager::instance()
->getLightNodeMask(mUpdateVisitor.get()); ->getLightNodeMask(mUpdateVisitor.get());
if (hotspots) if (hotspots)