Show
Ignore:
Timestamp:
09/22/07 18:46:38 (7 years ago)
Author:
robert
Message:

From Adrian Egli, update to ParallelSplitShadowMap?.

Files:
1 modified

Legend:

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

    r7441 r7452  
    498498    arguments.getApplicationUsage()->addCommandLineOption("--pssm", "Select ParallelSplitShadowMap implementation.");//ADEGLI 
    499499    arguments.getApplicationUsage()->addCommandLineOption("--mapcount", "ParallelSplitShadowMap texture count.");//ADEGLI 
     500    arguments.getApplicationUsage()->addCommandLineOption("--mapres", "ParallelSplitShadowMap texture resolution.");//ADEGLI 
     501    arguments.getApplicationUsage()->addCommandLineOption("--debug-color", "ParallelSplitShadowMap display debugging color (only the first 3 maps are color r=0,g=1,b=2.");//ADEGLI 
    500502 
    501503    arguments.getApplicationUsage()->addCommandLineOption("-1", "Use test model one."); 
     
    623625        while (arguments.read("--mapcount", mapcount)); 
    624626        osg::ref_ptr<osgShadow::ParallelSplitShadowMap> pssm = new osgShadow::ParallelSplitShadowMap(NULL,mapcount); 
     627 
     628        unsigned int mapres = 1024; 
     629        while (arguments.read("--mapres", mapres)); 
     630        pssm->setTextureResolution(mapres); 
     631         
     632        while (arguments.read("--debug-color")) { pssm->setDebugColorOn(); } 
     633          
     634 
    625635        shadowedScene->setShadowTechnique(pssm.get()); 
    626636    }