Make all surfaces anistropic
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
a4229e4cdb
commit
100d670866
@ -22,6 +22,7 @@
|
||||
#include <stdexcept>
|
||||
#include <sstream>
|
||||
|
||||
#include "config/user_config.hpp"
|
||||
#include "graphics/material.hpp"
|
||||
#include "io/file_manager.hpp"
|
||||
#include "io/xml_node.hpp"
|
||||
@ -72,6 +73,17 @@ void MaterialManager::setAllMaterialFlags(video::ITexture* t,
|
||||
return;
|
||||
}
|
||||
} // for i
|
||||
|
||||
// This material does not appear in materials.xml. Set some common flags...
|
||||
if (UserConfigParams::m_anisotropic)
|
||||
{
|
||||
mb->getMaterial().setFlag(video::EMF_ANISOTROPIC_FILTER, true);
|
||||
}
|
||||
else if (UserConfigParams::m_trilinear)
|
||||
{
|
||||
mb->getMaterial().setFlag(video::EMF_TRILINEAR_FILTER, true);
|
||||
}
|
||||
|
||||
} // setAllMaterialFlags
|
||||
//-----------------------------------------------------------------------------
|
||||
void MaterialManager::setAllUntexturedMaterialFlags(scene::IMeshBuffer *mb) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user