1
0
Fork 0

Restrict sky-clouds group, avoids skydome picks.

This commit is contained in:
James Turner 2013-06-22 14:37:33 +01:00
parent a94dce031c
commit b2d02c3970

View file

@ -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() );