From: Frederic Bouvier Date: Sat, 14 Jul 2012 11:00:05 +0000 (+0200) Subject: More node mask fix X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6ab3ddb7d263d340c03a826feb2de1a1c75e47a;p=simgear.git More node mask fix --- diff --git a/simgear/environment/precipitation.cxx b/simgear/environment/precipitation.cxx index 3f57afc7..073c06d8 100644 --- a/simgear/environment/precipitation.cxx +++ b/simgear/environment/precipitation.cxx @@ -80,7 +80,7 @@ osg::Group* SGPrecipitation::build(void) group->addChild(_precipitationEffect.get()); } - group->setNodeMask( ~simgear::CASTSHADOW_BIT ); + group->setNodeMask( ~(simgear::CASTSHADOW_BIT | simgear::MODELLIGHT_BIT) ); return group; } diff --git a/simgear/scene/model/particles.cxx b/simgear/scene/model/particles.cxx index d461e08e..5401e8ec 100644 --- a/simgear/scene/model/particles.cxx +++ b/simgear/scene/model/particles.cxx @@ -114,6 +114,7 @@ osg::Group* Particles::getCommonRoot() commonGeode.get()->setName("common particle system geode"); commonRoot.get()->addChild(commonGeode.get()); commonRoot.get()->addChild(psu.get()); + commonRoot->setNodeMask( ~simgear::MODELLIGHT_BIT ); } return commonRoot.get(); } diff --git a/simgear/scene/sky/newcloud.cxx b/simgear/scene/sky/newcloud.cxx index 2f24298c..4632347e 100644 --- a/simgear/scene/sky/newcloud.cxx +++ b/simgear/scene/sky/newcloud.cxx @@ -47,6 +47,7 @@ #include #include #include +#include #include #include @@ -248,6 +249,7 @@ osg::ref_ptr SGNewCloud::genCloud() { geode->addDrawable(sg); geode->setName("3D cloud"); geode->setEffect(effect.get()); + geode->setNodeMask( ~simgear::MODELLIGHT_BIT ); return geode; }