forked from mirror/openmw-tes3mp
options for texture filtering and mipmaps
This commit is contained in:
parent
39ee9e9ab8
commit
ff15f28787
2 changed files with 25 additions and 3 deletions
|
@ -32,7 +32,17 @@ RenderingManager::RenderingManager (OEngine::Render::OgreRenderer& _rend, const
|
|||
configureFog(1, ColourValue(1,1,1));
|
||||
|
||||
// Set default mipmap level (NB some APIs ignore this)
|
||||
TextureManager::getSingleton().setDefaultNumMipmaps(5);
|
||||
TextureManager::getSingleton().setDefaultNumMipmaps(Settings::Manager::getInt("num mipmaps", "General"));
|
||||
|
||||
// Set default texture filtering options
|
||||
TextureFilterOptions tfo;
|
||||
std::string filter = Settings::Manager::getString("texture filtering", "General");
|
||||
if (filter == "anisotropic") tfo = TFO_ANISOTROPIC;
|
||||
else if (filter == "trilinear") tfo = TFO_TRILINEAR;
|
||||
else /* if (filter == "bilinear") */ tfo = TFO_BILINEAR;
|
||||
|
||||
MaterialManager::getSingleton().setDefaultTextureFiltering(tfo);
|
||||
MaterialManager::getSingleton().setDefaultAnisotropy(Settings::Manager::getInt("anisotropy", "General"));
|
||||
|
||||
// Load resources
|
||||
ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
|
||||
|
|
|
@ -2,6 +2,18 @@
|
|||
# Camera field of view
|
||||
field of view = 55
|
||||
|
||||
# Texture filtering mode. valid values:
|
||||
# anisotropic
|
||||
# bilinear
|
||||
# trilinear
|
||||
texture filtering = anisotropic
|
||||
|
||||
# Has no effect when texture filtering is not anisotropic
|
||||
anisotropy = 4
|
||||
|
||||
# Number of texture mipmaps to generate
|
||||
num mipmaps = 5
|
||||
|
||||
[HUD]
|
||||
# FPS counter
|
||||
# 0: not visible
|
||||
|
|
Loading…
Reference in a new issue