]> git.mxchange.org Git - simgear.git/commitdiff
More node mask fix
authorFrederic Bouvier <fredfgfs01@free.fr>
Sat, 14 Jul 2012 11:00:05 +0000 (13:00 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sat, 14 Jul 2012 11:00:30 +0000 (13:00 +0200)
simgear/environment/precipitation.cxx
simgear/scene/model/particles.cxx
simgear/scene/sky/newcloud.cxx

index 3f57afc7d513bb743785a7538a3d960447308c04..073c06d81869012a6af592b737a949c6abdec7b6 100644 (file)
@@ -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;
 }
index d461e08e656e6db8d0e09699d3337b643fa7a9a2..5401e8ec4216c66c6395607a3d22de6de79c1993 100644 (file)
@@ -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();
 }
index 2f24298c5c3188603e65371af71dccc313869c70..4632347edb32754a58cc4ab1bafe6e2c634aa3d8 100644 (file)
@@ -47,6 +47,7 @@
 #include <simgear/scene/util/SGReaderWriterOptions.hxx>
 #include <simgear/scene/util/StateAttributeFactory.hxx>
 #include <simgear/scene/util/SGUpdateVisitor.hxx>
+#include <simgear/scene/util/RenderConstants.hxx>
 
 #include <algorithm>
 #include <osg/BlendFunc>
@@ -248,6 +249,7 @@ osg::ref_ptr<EffectGeode> SGNewCloud::genCloud() {
     geode->addDrawable(sg);
     geode->setName("3D cloud");
     geode->setEffect(effect.get());
+    geode->setNodeMask( ~simgear::MODELLIGHT_BIT );
     
     return geode;
 }