Changed the support for anisotropic filtering in osg::Texture so that it
is now controlled via the setMaxAnisotropy(float) method, and is set up independently for the mag filter mode, which it previously was done.
This commit is contained in:
@@ -652,12 +652,13 @@ StateSet* Attr::createOsgStateSet()
|
||||
case MAG_FILTER_BICUBIC:
|
||||
case MAG_FILTER_BICUBIC_GEQUAL:
|
||||
case MAG_FILTER_BICUBIC_LEQUAL:
|
||||
osgTexture->setFilter(osg::Texture::MAG_FILTER, Texture::ANISOTROPIC);
|
||||
osgTexture->setFilter(osg::Texture::MAG_FILTER, Texture::LINEAR);
|
||||
osgTexture->setMaxAnisotropy(2.0f);
|
||||
break;
|
||||
|
||||
// case MAG_FILTER_ADD_DETAIL:
|
||||
// case MAG_FILTER_MODULATE_DETAIL:
|
||||
// osgTexture->setFilter(osg::Texture::MAG_FILTER, Texture::ANISOTROPIC);
|
||||
// osgTexture->setFilter(osg::Texture::MAG_FILTER, Texture::LINEAR);
|
||||
// break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user