Show
Ignore:
Timestamp:
08/22/14 21:00:53 (3 hours ago)
Author:
robert
Message:

Improved handling of setting of the depth of the UI.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp

    r13099 r13107  
    837837    osg::ref_ptr<osgShadow::ShadowedScene> shadowedScene = new osgShadow::ShadowedScene; 
    838838 
    839     shadowedScene->getShadowSettings()->setReceivesShadowTraversalMask(ReceivesShadowTraversalMask); 
    840     shadowedScene->getShadowSettings()->setCastsShadowTraversalMask(CastsShadowTraversalMask); 
     839    osgShadow::ShadowSettings* settings = shadowedScene->getShadowSettings(); 
     840    settings->setReceivesShadowTraversalMask(ReceivesShadowTraversalMask); 
     841    settings->setCastsShadowTraversalMask(CastsShadowTraversalMask); 
    841842 
    842843    osg::ref_ptr<osgShadow::MinimalShadowMap> msm = NULL; 
     
    919920    else if( arguments.read("--vdsm") ) 
    920921    { 
    921         osgShadow::ShadowSettings* settings = new osgShadow::ShadowSettings; 
    922         shadowedScene->setShadowSettings(settings); 
    923  
    924922        while( arguments.read("--debugHUD") ) settings->setDebugDraw( true ); 
    925923        if (arguments.read("--persp")) settings->setShadowMapProjectionHint(osgShadow::ShadowSettings::PERSPECTIVE_SHADOW_MAP);