Working 'noshadow' animation
This commit is contained in:
parent
68b275cfe9
commit
398936d08c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue