Restrict sky-clouds group, avoids skydome picks.
This commit is contained in:
parent
a94dce031c
commit
b2d02c3970
1 changed files with 3 additions and 0 deletions
|
@ -1293,6 +1293,9 @@ osg::Node*
|
||||||
FGRenderer::buildLightingSkyCloudsPass(FGRenderingPipeline::Pass* pass)
|
FGRenderer::buildLightingSkyCloudsPass(FGRenderingPipeline::Pass* pass)
|
||||||
{
|
{
|
||||||
Group* group = new Group;
|
Group* group = new Group;
|
||||||
|
group->setName("skyCloudsGroup");
|
||||||
|
group->setNodeMask(simgear::BACKGROUND_BIT);
|
||||||
|
|
||||||
StateSet* ss = group->getOrCreateStateSet();
|
StateSet* ss = group->getOrCreateStateSet();
|
||||||
ss->setAttributeAndModes( new osg::ColorMask( true, true, true, false ), osg::StateAttribute::ON );
|
ss->setAttributeAndModes( new osg::ColorMask( true, true, true, false ), osg::StateAttribute::ON );
|
||||||
group->addChild( _sky->getPreRoot() );
|
group->addChild( _sky->getPreRoot() );
|
||||||
|
|
Loading…
Add table
Reference in a new issue