]> git.mxchange.org Git - simgear.git/commitdiff
Precipitation don't cast shadows
authorFrederic Bouvier <fredfgfs01@free.fr>
Fri, 13 Jul 2012 15:53:00 +0000 (17:53 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Fri, 13 Jul 2012 15:53:00 +0000 (17:53 +0200)
simgear/environment/precipitation.cxx

index d22bbfd8e8eba15c4e71f1fd2c24e5ed6447a987..3f57afc7d513bb743785a7538a3d960447308c04 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <simgear/constants.h>
 #include <osg/ClipNode>
+#include <simgear/scene/util/RenderConstants.hxx>
 
 /**
  * @brief SGPrecipitation constructor
@@ -79,6 +80,8 @@ osg::Group* SGPrecipitation::build(void)
         group->addChild(_precipitationEffect.get());
     }
 
+    group->setNodeMask( ~simgear::CASTSHADOW_BIT );
+
     return group;
 }