Added max texture anisotropy of 4.

This commit is contained in:
Robert Osfield 2003-12-22 14:48:14 +00:00
parent 26ef2ca0d2
commit 679b2e44b8

View File

@ -348,6 +348,9 @@ void TXPParser::loadLocalMaterials()
texEnv.GetWrap(wrap_s, wrap_t);
osg_texture->setWrap(osg::Texture2D::WRAP_S, wrap_s == trpgTextureEnv::Repeat ? osg::Texture2D::REPEAT: osg::Texture2D::CLAMP );
osg_texture->setWrap(osg::Texture2D::WRAP_T, wrap_t == trpgTextureEnv::Repeat ? osg::Texture2D::REPEAT: osg::Texture2D::CLAMP );
// by default is anisotropic filtering.
osg_texture->setMaxAnisotropy(4.0f);
}
else
{