Open GoogleCodeExporter opened 9 years ago
osg::Texture2D* OceanScene::createTexture2D( const osg::Vec2s& size, GLint
format )
{
osg::Texture2D* texture = new osg::Texture2D;
texture->setTextureSize(size.x(), size.y());
texture->setInternalFormat(format);
texture->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR);
texture->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR);
//texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP );
//texture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP );
texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE );
texture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE );
texture->setDataVariance(osg::Object::DYNAMIC);
return texture;
}
repair it
Original comment by jacko...@gmail.com
on 7 Apr 2013 at 1:56
Original issue reported on code.google.com by
jacko...@gmail.com
on 7 Apr 2013 at 1:29