From Paul Martsz, changed the Texture clamping mode to CLAMP_TO_EDGE

This commit is contained in:
Robert Osfield
2007-09-13 10:32:05 +00:00
parent 2aff52be23
commit 5caf64e5c7

View File

@@ -85,6 +85,8 @@ void ShadowMap::init()
_texture->setShadowTextureMode(osg::Texture2D::LUMINANCE);
_texture->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR);
_texture->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR);
_texture->setWrap(osg::Texture2D::WRAP_S,osg::Texture2D::CLAMP_TO_EDGE);
_texture->setWrap(osg::Texture2D::WRAP_T,osg::Texture2D::CLAMP_TO_EDGE);
// set up the render to texture camera.
{