From ddfdbd75b87b62b831e899821795c2f735c0dbda Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Fri, 13 Jul 2012 17:53:00 +0200 Subject: [PATCH] Precipitation don't cast shadows --- simgear/environment/precipitation.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simgear/environment/precipitation.cxx b/simgear/environment/precipitation.cxx index d22bbfd8..3f57afc7 100644 --- a/simgear/environment/precipitation.cxx +++ b/simgear/environment/precipitation.cxx @@ -29,6 +29,7 @@ #include #include +#include /** * @brief SGPrecipitation constructor @@ -79,6 +80,8 @@ osg::Group* SGPrecipitation::build(void) group->addChild(_precipitationEffect.get()); } + group->setNodeMask( ~simgear::CASTSHADOW_BIT ); + return group; } -- 2.39.5