Show
Ignore:
Timestamp:
12/19/11 10:09:30 (3 years ago)
Author:
robert
Message:

Added --num-sm and --parallel-split and --cascaded command line options to set the appriopriate ViewDependentShadowMap? settings.

Files:
1 modified

Legend:

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

    r12831 r12893  
    932932        if (arguments.read("-n",n)) settings->setMinimumShadowMapNearFarRatio(n); 
    933933 
     934        unsigned int numShadowMaps; 
     935        if (arguments.read("--num-sm",numShadowMaps)) settings->setNumShadowMapsPerLight(numShadowMaps); 
     936 
     937        if (arguments.read("--parallel-split") || arguments.read("--ps") ) settings->setMultipleShadowMapHint(osgShadow::ShadowSettings::PARALLEL_SPLIT); 
     938        if (arguments.read("--cascaded")) settings->setMultipleShadowMapHint(osgShadow::ShadowSettings::CASCADED); 
     939 
     940 
    934941        int mapres = 1024; 
    935942        while (arguments.read("--mapres", mapres))