diff --git a/src/Viewer/renderer.cxx b/src/Viewer/renderer.cxx index 9a0817c7d..6604ce280 100644 --- a/src/Viewer/renderer.cxx +++ b/src/Viewer/renderer.cxx @@ -1293,6 +1293,9 @@ osg::Node* FGRenderer::buildLightingSkyCloudsPass(FGRenderingPipeline::Pass* pass) { Group* group = new Group; + group->setName("skyCloudsGroup"); + group->setNodeMask(simgear::BACKGROUND_BIT); + StateSet* ss = group->getOrCreateStateSet(); ss->setAttributeAndModes( new osg::ColorMask( true, true, true, false ), osg::StateAttribute::ON ); group->addChild( _sky->getPreRoot() );