Precipitation don't cast shadows
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user