Show
Ignore:
Timestamp:
08/24/11 21:38:58 (3 years ago)
Author:
robert
Message:

Added support for user defined setting of the shadow texture unit

Files:
1 modified

Legend:

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

    r12761 r12762  
    801801        if (arguments.read("--persp")) vdsm->setShadowMapProjectionHint(osgShadow::ViewDependentShadowMap::PERSPECTIVE_SHADOW_MAP); 
    802802        if (arguments.read("--ortho")) vdsm->setShadowMapProjectionHint(osgShadow::ViewDependentShadowMap::ORTHOGRAPHIC_SHADOW_MAP); 
     803 
     804        unsigned int unit=1; 
     805        if (arguments.read("--unit",unit)) vdsm->setBaseShadowTextureUnit(unit); 
    803806         
    804807        shadowedScene->setShadowTechnique(vdsm.get());