1
0
Fork 0

Don't let the cloud alpha value change the lighting buffer

This commit is contained in:
Frederic Bouvier 2012-08-12 19:06:41 +02:00
parent 948d87e561
commit e6cb846ad3

View file

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