Show
Ignore:
Timestamp:
10/17/11 12:25:28 (3 years ago)
Author:
robert
Message:

From Jean-Sebastien Guay, add --mapres size option to ViewDependentShadowMap? settings.

Files:
1 modified

Legend:

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

    r12782 r12830  
    932932        if (arguments.read("-n",n)) settings->setMinimumShadowMapNearFarRatio(n); 
    933933 
     934        int mapres = 1024; 
     935        while (arguments.read("--mapres", mapres)) 
     936            settings->setTextureSize(osg::Vec2s(mapres,mapres)); 
     937 
    934938        osg::ref_ptr<osgShadow::ViewDependentShadowMap> vdsm = new osgShadow::ViewDependentShadowMap; 
    935939        shadowedScene->setShadowTechnique(vdsm.get());