1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

- fixes to texture filtering setting

- add a sensible warning to settings-default.cfg, since there have been some confusions with it
This commit is contained in:
scrawl 2012-04-09 00:10:42 +02:00
parent e17a09e710
commit 1df7be7fee
2 changed files with 7 additions and 2 deletions

View File

@ -41,10 +41,11 @@ RenderingManager::RenderingManager (OEngine::Render::OgreRenderer& _rend, const
std::string filter = Settings::Manager::getString("texture filtering", "General"); std::string filter = Settings::Manager::getString("texture filtering", "General");
if (filter == "anisotropic") tfo = TFO_ANISOTROPIC; if (filter == "anisotropic") tfo = TFO_ANISOTROPIC;
else if (filter == "trilinear") tfo = TFO_TRILINEAR; else if (filter == "trilinear") tfo = TFO_TRILINEAR;
else /* if (filter == "bilinear") */ tfo = TFO_BILINEAR; else if (filter == "bilinear") tfo = TFO_BILINEAR;
else if (filter == "none") tfo = TFO_NONE;
MaterialManager::getSingleton().setDefaultTextureFiltering(tfo); MaterialManager::getSingleton().setDefaultTextureFiltering(tfo);
MaterialManager::getSingleton().setDefaultAnisotropy(Settings::Manager::getInt("anisotropy", "General")); MaterialManager::getSingleton().setDefaultAnisotropy( (filter == "anisotropic") ? Settings::Manager::getInt("anisotropy", "General") : 1 );
// Load resources // Load resources
ResourceGroupManager::getSingleton().initialiseAllResourceGroups(); ResourceGroupManager::getSingleton().initialiseAllResourceGroups();

View File

@ -1,8 +1,12 @@
# WARNING: Editing this file might have no effect, as these
# settings are overwritten by your user settings file.
[General] [General]
# Camera field of view # Camera field of view
field of view = 55 field of view = 55
# Texture filtering mode. valid values: # Texture filtering mode. valid values:
# none
# anisotropic # anisotropic
# bilinear # bilinear
# trilinear # trilinear