From 42a8ec7eb5b3c3acacc3bbe54dc033dd63859ece Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 17 Oct 2003 10:22:46 +0000 Subject: [PATCH] Adding clamping of the tree textures. --- examples/osgforest/osgforest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/osgforest/osgforest.cpp b/examples/osgforest/osgforest.cpp index 98947a73c..2369d5869 100644 --- a/examples/osgforest/osgforest.cpp +++ b/examples/osgforest/osgforest.cpp @@ -777,6 +777,8 @@ osg::Node* ForestTechniqueManager::createScene(unsigned int numTreesToCreates) osg::Texture2D *tex = new osg::Texture2D; + tex->setWrap( osg::Texture2D::WRAP_S, osg::Texture2D::CLAMP ); + tex->setWrap( osg::Texture2D::WRAP_T, osg::Texture2D::CLAMP ); tex->setImage(osgDB::readImageFile("Images/tree0.rgba")); osg::StateSet *dstate = new osg::StateSet;