Show
Ignore:
Timestamp:
08/09/11 17:57:37 (3 years ago)
Author:
robert
Message:

Implemented ViewDependentShadowMap::setDebugDraw(bool) to allow osgshadow to enable/disable the debug display via the
standard --debugHUD option.

Files:
1 modified

Legend:

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

    r12743 r12748  
    815815    { 
    816816        osg::ref_ptr<osgShadow::ViewDependentShadowMap> vdsm = new osgShadow::ViewDependentShadowMap; 
     817        while( arguments.read("--debugHUD") ) vdsm->setDebugDraw( true ); 
    817818        shadowedScene->setShadowTechnique(vdsm.get()); 
    818819    } 
     
    830831    { 
    831832        shadowedScene->setShadowTechnique( msm.get() ); 
    832         while( arguments.read("--debugHUD") )            
    833             msm->setDebugDraw( true ); 
     833        while( arguments.read("--debugHUD") ) msm->setDebugDraw( true ); 
    834834 
    835835        float minLightMargin = 10.f;