Changeset 6238 for OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp
- Timestamp:
- 02/19/07 17:59:52 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp
r6237 r6238 470 470 arguments.getApplicationUsage()->addCommandLineOption("--positionalLight", "Use a positional light."); 471 471 arguments.getApplicationUsage()->addCommandLineOption("--directionalLight", "Use a direction light."); 472 arguments.getApplicationUsage()->addCommandLineOption("--addOccluderToScene", "Add the occluders geometry.");473 472 arguments.getApplicationUsage()->addCommandLineOption("--noUpdate", "Disable the updating the of light source."); 474 473 arguments.getApplicationUsage()->addCommandLineOption("--base", "Add a base geometry to test shadows."); 475 arguments.getApplicationUsage()->addCommandLineOption("--noShadow", "Disable the shadows."); 474 arguments.getApplicationUsage()->addCommandLineOption("--sv", "Select ShadowVolume implementation."); 475 arguments.getApplicationUsage()->addCommandLineOption("--sm", "Select ShadowMap implementation."); 476 arguments.getApplicationUsage()->addCommandLineOption("--sm", "Select ShadowMap implementation."); 477 arguments.getApplicationUsage()->addCommandLineOption("--pssm", "Select ParallelSplitShadowMap implementation."); 478 arguments.getApplicationUsage()->addCommandLineOption("--1", "Use test model one."); 479 arguments.getApplicationUsage()->addCommandLineOption("--2", "Use test model two."); 480 arguments.getApplicationUsage()->addCommandLineOption("--3", "Use test model three."); 476 481 arguments.getApplicationUsage()->addCommandLineOption("--two-sided", "Use two-sided stencil extension for shadow volumes."); 477 482 arguments.getApplicationUsage()->addCommandLineOption("--two-pass", "Use two-pass stencil for shadow volumes."); 478 483 479 // hint to tell viewer to request stencil buffer when setting up windows480 osg::DisplaySettings::instance()->setMinimumNumStencilBits(8);481 484 482 485 // construct the viewer. … … 577 580 if (arguments.read("--sv")) 578 581 { 582 // hint to tell viewer to request stencil buffer when setting up windows 583 osg::DisplaySettings::instance()->setMinimumNumStencilBits(8); 584 579 585 osg::ref_ptr<osgShadow::ShadowVolume> sv = new osgShadow::ShadowVolume; 580 586 sv->setDynamicShadowVolumes(updateLightPosition);
