More node mask fix

This commit is contained in:
Frederic Bouvier
2012-07-14 13:00:30 +02:00
parent 8ed0fec364
commit e6ab3ddb7d
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ osg::Group* SGPrecipitation::build(void)
group->addChild(_precipitationEffect.get()); group->addChild(_precipitationEffect.get());
} }
group->setNodeMask( ~simgear::CASTSHADOW_BIT ); group->setNodeMask( ~(simgear::CASTSHADOW_BIT | simgear::MODELLIGHT_BIT) );
return group; return group;
} }
+1
View File
@@ -114,6 +114,7 @@ osg::Group* Particles::getCommonRoot()
commonGeode.get()->setName("common particle system geode"); commonGeode.get()->setName("common particle system geode");
commonRoot.get()->addChild(commonGeode.get()); commonRoot.get()->addChild(commonGeode.get());
commonRoot.get()->addChild(psu.get()); commonRoot.get()->addChild(psu.get());
commonRoot->setNodeMask( ~simgear::MODELLIGHT_BIT );
} }
return commonRoot.get(); return commonRoot.get();
} }
+2
View File
@@ -47,6 +47,7 @@
#include <simgear/scene/util/SGReaderWriterOptions.hxx> #include <simgear/scene/util/SGReaderWriterOptions.hxx>
#include <simgear/scene/util/StateAttributeFactory.hxx> #include <simgear/scene/util/StateAttributeFactory.hxx>
#include <simgear/scene/util/SGUpdateVisitor.hxx> #include <simgear/scene/util/SGUpdateVisitor.hxx>
#include <simgear/scene/util/RenderConstants.hxx>
#include <algorithm> #include <algorithm>
#include <osg/BlendFunc> #include <osg/BlendFunc>
@@ -248,6 +249,7 @@ osg::ref_ptr<EffectGeode> SGNewCloud::genCloud() {
geode->addDrawable(sg); geode->addDrawable(sg);
geode->setName("3D cloud"); geode->setName("3D cloud");
geode->setEffect(effect.get()); geode->setEffect(effect.get());
geode->setNodeMask( ~simgear::MODELLIGHT_BIT );
return geode; return geode;
} }