forked from mirror/openmw-tes3mp
Enable mipmap generator for 1.9+
This commit is contained in:
parent
b8ac37347c
commit
94cdc1efd2
3 changed files with 8 additions and 6 deletions
|
@ -109,10 +109,13 @@ RenderingManager::RenderingManager(OEngine::Render::OgreRenderer& _rend, const b
|
||||||
|
|
||||||
mFactory->loadAllFiles();
|
mFactory->loadAllFiles();
|
||||||
|
|
||||||
// Set default mipmap level (NB some APIs ignore this)
|
// Compressed textures with 0 mip maps are bugged in 1.8, so disable mipmap generator in that case
|
||||||
// Mipmap generation is currently disabled because it causes issues on Intel/AMD
|
// ( https://ogre3d.atlassian.net/browse/OGRE-259 )
|
||||||
//TextureManager::getSingleton().setDefaultNumMipmaps(Settings::Manager::getInt("num mipmaps", "General"));
|
#if OGRE_VERSION >= (1 << 16 | 9 << 8 | 0)
|
||||||
|
TextureManager::getSingleton().setDefaultNumMipmaps(Settings::Manager::getInt("num mipmaps", "General"));
|
||||||
|
#else
|
||||||
TextureManager::getSingleton().setDefaultNumMipmaps(0);
|
TextureManager::getSingleton().setDefaultNumMipmaps(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Set default texture filtering options
|
// Set default texture filtering options
|
||||||
TextureFilterOptions tfo;
|
TextureFilterOptions tfo;
|
||||||
|
|
|
@ -37,7 +37,7 @@ material Water
|
||||||
|
|
||||||
texture_unit normalMap
|
texture_unit normalMap
|
||||||
{
|
{
|
||||||
texture water_nm.png 5
|
texture water_nm.png
|
||||||
}
|
}
|
||||||
|
|
||||||
texture_unit rippleNormalMap
|
texture_unit rippleNormalMap
|
||||||
|
|
|
@ -53,8 +53,7 @@ texture filtering = anisotropic
|
||||||
anisotropy = 4
|
anisotropy = 4
|
||||||
|
|
||||||
# Number of texture mipmaps to generate
|
# Number of texture mipmaps to generate
|
||||||
# This setting is currently ignored due to mipmap generation problems on Intel/AMD
|
num mipmaps = 8
|
||||||
#num mipmaps = 5
|
|
||||||
|
|
||||||
shader mode =
|
shader mode =
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue