Show
Ignore:
Timestamp:
09/13/07 12:32:05 (7 years ago)
Author:
robert
Message:

From Paul Martsz, changed the Texture clamping mode to CLAMP_TO_EDGE

Files:
1 modified

Legend:

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

    r6997 r7412  
    8686    _texture->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR); 
    8787    _texture->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR); 
     88    _texture->setWrap(osg::Texture2D::WRAP_S,osg::Texture2D::CLAMP_TO_EDGE); 
     89    _texture->setWrap(osg::Texture2D::WRAP_T,osg::Texture2D::CLAMP_TO_EDGE); 
    8890 
    8991    // set up the render to texture camera.