Show
Ignore:
Timestamp:
11/02/05 16:56:29 (8 years ago)
Author:
robert
Message:

From Brede Johnasen, changed wrap mode to CLAMP_TO_EDGE to avoid edges being
seen when zoomed into the reflectio map.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgprerendercubemap/osgprerendercubemap.cpp

    r4579 r4663  
    205205 
    206206    texture->setInternalFormat(GL_RGB); 
     207    texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE); 
     208    texture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE); 
     209    texture->setWrap(osg::Texture::WRAP_R, osg::Texture::CLAMP_TO_EDGE); 
    207210    texture->setFilter(osg::TextureCubeMap::MIN_FILTER,osg::TextureCubeMap::LINEAR); 
    208211    texture->setFilter(osg::TextureCubeMap::MAG_FILTER,osg::TextureCubeMap::LINEAR);