Changed the Texture clamp mode to CLAMP_TO_EDGE

This commit is contained in:
Robert Osfield 2008-01-16 15:05:04 +00:00
parent 61a4eb94b9
commit ae33e4a459

View File

@ -486,6 +486,8 @@ void GeometryTechnique::applyColorLayers()
texture2D->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR);
texture2D->setFilter(osg::Texture::MAG_FILTER, filter==Terrain::LINEAR ? osg::Texture::LINEAR : osg::Texture::NEAREST);
texture2D->setWrap(osg::Texture::WRAP_S,osg::Texture::CLAMP_TO_EDGE);
texture2D->setWrap(osg::Texture::WRAP_T,osg::Texture::CLAMP_TO_EDGE);
if (tf)
{