Fixed typo that was causing anisotropic texure filtering to be permanently disabled. Renamed hidden tweak parameter for anisotropic filtering from texture-anisotropy-bias to texture-anisotropy-scale, and changed default value from 1.0 to 0.5.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2010 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2009-01-24 12:16:00 +00:00
parent e4adae07fd
commit f99efad2ea

View File

@ -494,7 +494,7 @@ static BOOL sRectangleTextureAvailable;
_options = options;
#if GL_EXT_texture_filter_anisotropic
_anisotropy = OOClamp_0_1_f(_anisotropy) * sAnisotropyScale;
_anisotropy = OOClamp_0_1_f(anisotropy) * sAnisotropyScale;
#endif
#if GL_EXT_texture_lod_bias
_lodBias = inLodBias;
@ -667,7 +667,7 @@ static BOOL sRectangleTextureAvailable;
#if GL_EXT_texture_filter_anisotropic
sAnisotropyAvailable = [extMgr haveExtension:@"GL_EXT_texture_filter_anisotropic"];
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &sAnisotropyScale);
sAnisotropyScale *= OOClamp_0_1_f([[NSUserDefaults standardUserDefaults] floatForKey:@"texture-anisotropy-bias" defaultValue:1.0]);
sAnisotropyScale *= OOClamp_0_1_f([[NSUserDefaults standardUserDefaults] floatForKey:@"texture-anisotropy-scale" defaultValue:0.5]);
#endif
#ifdef GL_CLAMP_TO_EDGE