Precipitation don't cast shadows
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include <simgear/constants.h>
|
#include <simgear/constants.h>
|
||||||
#include <osg/ClipNode>
|
#include <osg/ClipNode>
|
||||||
|
#include <simgear/scene/util/RenderConstants.hxx>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SGPrecipitation constructor
|
* @brief SGPrecipitation constructor
|
||||||
@@ -79,6 +80,8 @@ osg::Group* SGPrecipitation::build(void)
|
|||||||
group->addChild(_precipitationEffect.get());
|
group->addChild(_precipitationEffect.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group->setNodeMask( ~simgear::CASTSHADOW_BIT );
|
||||||
|
|
||||||
return group;
|
return group;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user