Show
Ignore:
Timestamp:
05/25/13 12:09:23 (10 hours ago)
Author:
robert
Message:

From Farshid Lashkari, " small update to TangentSpaceGenerator? to support QUAD_STRIP primitive types."

Files:
1 modified

Legend:

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

    r13108 r13110  
    743743    arguments.getApplicationUsage()->addCommandLineOption("--two-pass", "Use two-pass stencil for shadow volumes."); 
    744744    arguments.getApplicationUsage()->addCommandLineOption("--near-far-mode","COMPUTE_NEAR_USING_PRIMITIVES, COMPUTE_NEAR_FAR_USING_PRIMITIVES, COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES, DO_NOT_COMPUTE_NEAR_FAR"); 
     745    arguments.getApplicationUsage()->addCommandLineOption("--max-shadow-distance","<float> Maximum distance that the shadow map should extend from the eye point."); 
    745746 
    746747    // construct the viewer. 
     
    860861        OSG_NOTICE<<std::endl; 
    861862    } 
     863 
     864    double distance; 
     865    if (arguments.read("--max-shadow-distance",distance)) 
     866    { 
     867        settings->setMaximumShadowMapDistance(distance); 
     868        OSG_NOTICE<<"MaximumShadowMapDistance set to "<<settings->getMaximumShadowMapDistance()<<std::endl; 
     869    } 
     870 
    862871     
    863872    osg::ref_ptr<osgShadow::MinimalShadowMap> msm = NULL;