Adding clamping of the tree textures.

This commit is contained in:
Robert Osfield 2003-10-17 10:22:46 +00:00
parent 4e7867ba8c
commit 42a8ec7eb5

View File

@ -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;