Show
Ignore:
Timestamp:
08/12/07 14:15:21 (7 years ago)
Author:
robert
Message:

Added support for SoftShadowMap? into osgshadow example

Files:
1 modified

Legend:

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

    r6952 r7219  
    4040#include <osgShadow/ShadowTexture> 
    4141#include <osgShadow/ShadowMap> 
     42#include <osgShadow/SoftShadowMap> 
    4243 
    4344#include <osgDB/ReadFile> 
     
    491492    arguments.getApplicationUsage()->addCommandLineOption("--base", "Add a base geometry to test shadows."); 
    492493    arguments.getApplicationUsage()->addCommandLineOption("--sv", "Select ShadowVolume implementation."); 
    493     arguments.getApplicationUsage()->addCommandLineOption("--sm", "Select ShadowMap implementation."); 
     494    arguments.getApplicationUsage()->addCommandLineOption("--ssm", "Select SoftShadowMap implementation."); 
    494495    arguments.getApplicationUsage()->addCommandLineOption("--sm", "Select ShadowMap implementation."); 
    495496//    arguments.getApplicationUsage()->addCommandLineOption("--pssm", "Select ParallelSplitShadowMap implementation."); 
     
    620621    } 
    621622#endif     
     623    else if (arguments.read("--ssm")) 
     624    { 
     625        osg::ref_ptr<osgShadow::SoftShadowMap> sm = new osgShadow::SoftShadowMap; 
     626        shadowedScene->setShadowTechnique(sm.get()); 
     627    } 
    622628    else /* if (arguments.read("--sm")) */ 
    623629    {