From 679b2e44b819d546326602bf107b21c2ca934ad2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 22 Dec 2003 14:48:14 +0000 Subject: [PATCH] Added max texture anisotropy of 4. --- src/osgPlugins/txp/TXPParser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgPlugins/txp/TXPParser.cpp b/src/osgPlugins/txp/TXPParser.cpp index 75cb5ef84..ac01a2be0 100644 --- a/src/osgPlugins/txp/TXPParser.cpp +++ b/src/osgPlugins/txp/TXPParser.cpp @@ -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 {