Browse Source

default is to mipmap text after all

David Rose 23 years ago
parent
commit
e211aa9294
1 changed files with 4 additions and 1 deletions
  1. 4 1
      panda/src/text/config_text.cxx

+ 4 - 1
panda/src/text/config_text.cxx

@@ -94,7 +94,10 @@ init_libtext() {
   // mipmapping to avoid dropping pixels, but avoids the hideous
   // mipmapping to avoid dropping pixels, but avoids the hideous
   // artifacts that we get from some cards (notably TNT2) from
   // artifacts that we get from some cards (notably TNT2) from
   // filtering between two different mipmap levels.
   // filtering between two different mipmap levels.
-  string text_minfilter_str = config_text.GetString("text-minfilter", "linear_mipmap_nearest");
+
+  // But, full mipmapping still gives smoother blending from small to
+  // large, so maybe we'll use it as the default anyway.
+  string text_minfilter_str = config_text.GetString("text-minfilter", "linear_mipmap_linear");
   string text_magfilter_str = config_text.GetString("text-magfilter", "linear");
   string text_magfilter_str = config_text.GetString("text-magfilter", "linear");
 
 
   text_minfilter = Texture::string_filter_type(text_minfilter_str);
   text_minfilter = Texture::string_filter_type(text_minfilter_str);