From 398936d08c92971c4dd969dc1f4b10bf6a720219 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sat, 30 Jun 2012 16:26:42 +0200 Subject: [PATCH] Working 'noshadow' animation --- src/Viewer/renderer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Viewer/renderer.cxx b/src/Viewer/renderer.cxx index 981fa549e..17ee89314 100644 --- a/src/Viewer/renderer.cxx +++ b/src/Viewer/renderer.cxx @@ -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);