Don't let the cloud alpha value change the lighting buffer
This commit is contained in:
parent
948d87e561
commit
e6cb846ad3
1 changed files with 2 additions and 0 deletions
|
@ -1275,6 +1275,8 @@ osg::Node*
|
|||
FGRenderer::buildLightingSkyCloudsPass(FGRenderingPipeline::Pass* pass)
|
||||
{
|
||||
Group* group = new Group;
|
||||
StateSet* ss = group->getOrCreateStateSet();
|
||||
ss->setAttributeAndModes( new osg::ColorMask( true, true, true, false ), osg::StateAttribute::ON );
|
||||
group->addChild( _sky->getPreRoot() );
|
||||
group->addChild( _sky->getCloudRoot() );
|
||||
return group;
|
||||
|
|
Loading…
Add table
Reference in a new issue