Added max texture anisotropy of 4.
This commit is contained in:
parent
26ef2ca0d2
commit
679b2e44b8
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user