Changed settings of masks to use ShadowSettings.

This commit is contained in:
Robert Osfield 2012-07-10 16:11:15 +00:00
parent b4d397cfd7
commit ec3ad89041

View File

@ -836,8 +836,8 @@ int main(int argc, char** argv)
osg::ref_ptr<osgShadow::ShadowedScene> shadowedScene = new osgShadow::ShadowedScene;
shadowedScene->setReceivesShadowTraversalMask(ReceivesShadowTraversalMask);
shadowedScene->setCastsShadowTraversalMask(CastsShadowTraversalMask);
shadowedScene->getShadowSettings()->setReceivesShadowTraversalMask(ReceivesShadowTraversalMask);
shadowedScene->getShadowSettings()->setCastsShadowTraversalMask(CastsShadowTraversalMask);
osg::ref_ptr<osgShadow::MinimalShadowMap> msm = NULL;
if (arguments.read("--no-shadows"))