Changeset 13110 for OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp
- Timestamp:
- 05/25/13 12:09:23 (10 hours ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp
r13108 r13110 743 743 arguments.getApplicationUsage()->addCommandLineOption("--two-pass", "Use two-pass stencil for shadow volumes."); 744 744 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."); 745 746 746 747 // construct the viewer. … … 860 861 OSG_NOTICE<<std::endl; 861 862 } 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 862 871 863 872 osg::ref_ptr<osgShadow::MinimalShadowMap> msm = NULL;
