1
0
Fork 0

Working 'noshadow' animation

This commit is contained in:
Frederic Bouvier 2012-06-30 16:26:42 +02:00
parent 68b275cfe9
commit 398936d08c

View file

@ -835,7 +835,7 @@ static osg::Camera* createShadowCascadeCamera( int no, int cascadeSize ) {
oss << "CascadeCamera" << (no + 1);
cascadeCam->setName( oss.str() );
cascadeCam->setClearMask(0);
cascadeCam->setCullMask(~( simgear::MODELLIGHT_BIT /* | simgear::NO_SHADOW_BIT */ ) );
cascadeCam->setCullMask( simgear::CASTSHADOW_BIT );
cascadeCam->setCullingMode( cascadeCam->getCullingMode() | osg::CullSettings::SMALL_FEATURE_CULLING );
cascadeCam->setAllowEventFocus(false);
cascadeCam->setReferenceFrame(osg::Transform::ABSOLUTE_RF_INHERIT_VIEWPOINT);