From 1cfba8787aac704b8ba88076f5afc2f72e7c7f39 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 18 Jan 2008 20:55:16 +0000 Subject: [PATCH] From Paul Martz, Hi Robert -- "as you and J-S and I have been discussing on osg-users, this submission changes the clamp mode for the fake white texture applied to non-textured geometry. CLAMP_TO_EDGE will keep the geometry a consistent color across the entire texture coordinate range." --- src/osgShadow/ShadowMap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgShadow/ShadowMap.cpp b/src/osgShadow/ShadowMap.cpp index d2b2addc3..b9f113fd5 100644 --- a/src/osgShadow/ShadowMap.cpp +++ b/src/osgShadow/ShadowMap.cpp @@ -294,8 +294,8 @@ void ShadowMap::init() *dataPtr = color; // make fake texture osg::Texture2D* fakeTex = new osg::Texture2D; - fakeTex->setWrap(osg::Texture2D::WRAP_S,osg::Texture2D::CLAMP_TO_BORDER); - fakeTex->setWrap(osg::Texture2D::WRAP_T,osg::Texture2D::CLAMP_TO_BORDER); + fakeTex->setWrap(osg::Texture2D::WRAP_S,osg::Texture2D::CLAMP_TO_EDGE); + fakeTex->setWrap(osg::Texture2D::WRAP_T,osg::Texture2D::CLAMP_TO_EDGE); fakeTex->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR); fakeTex->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR); fakeTex->setImage(image);