Changeset 7219 for OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp
- Timestamp:
- 08/12/07 14:15:21 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp
r6952 r7219 40 40 #include <osgShadow/ShadowTexture> 41 41 #include <osgShadow/ShadowMap> 42 #include <osgShadow/SoftShadowMap> 42 43 43 44 #include <osgDB/ReadFile> … … 491 492 arguments.getApplicationUsage()->addCommandLineOption("--base", "Add a base geometry to test shadows."); 492 493 arguments.getApplicationUsage()->addCommandLineOption("--sv", "Select ShadowVolume implementation."); 493 arguments.getApplicationUsage()->addCommandLineOption("--s m", "SelectShadowMap implementation.");494 arguments.getApplicationUsage()->addCommandLineOption("--ssm", "Select SoftShadowMap implementation."); 494 495 arguments.getApplicationUsage()->addCommandLineOption("--sm", "Select ShadowMap implementation."); 495 496 // arguments.getApplicationUsage()->addCommandLineOption("--pssm", "Select ParallelSplitShadowMap implementation."); … … 620 621 } 621 622 #endif 623 else if (arguments.read("--ssm")) 624 { 625 osg::ref_ptr<osgShadow::SoftShadowMap> sm = new osgShadow::SoftShadowMap; 626 shadowedScene->setShadowTechnique(sm.get()); 627 } 622 628 else /* if (arguments.read("--sm")) */ 623 629 {
