Show
Ignore:
Timestamp:
06/15/07 14:59:22 (8 years ago)
Author:
robert
Message:

Added ShadowMap::s/getAmbientBias, updated NEWS and wrappers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp

    r6952 r6991  
    6565} 
    6666 
     67void ShadowMap::setAmbientBias(const osg::Vec2& ambientBias) 
     68{ 
     69    _ambientBias = ambientBias; 
     70} 
     71 
    6772void ShadowMap::init() 
    6873{ 
     
    157162        } 
    158163         
    159         osg::Uniform* ambientBias = new osg::Uniform("ambientBias",osg::Vec2(0.3f,1.2f)); 
     164        osg::Uniform* ambientBias = new osg::Uniform("ambientBias",_ambientBias); 
    160165        _stateset->addUniform(ambientBias); 
    161166