Restore sky
Don't clear BACKGROUND_BIT in the master camera's cull mask. ViewPartitionNode does that where needed.
This commit is contained in:
parent
444de56679
commit
b1dd2eed8c
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue