Browse Source

mipmap by default

David Rose 24 years ago
parent
commit
8acb798ae8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pandatool/src/maya/mayaShader.cxx

+ 4 - 0
pandatool/src/maya/mayaShader.cxx

@@ -84,6 +84,10 @@ set_attributes(EggPrimitive &primitive, MayaFile &file) {
     tex.set_wrap_u(_wrap_u ? EggTexture::WM_repeat : EggTexture::WM_clamp);
     tex.set_wrap_u(_wrap_u ? EggTexture::WM_repeat : EggTexture::WM_clamp);
     tex.set_wrap_v(_wrap_v ? EggTexture::WM_repeat : EggTexture::WM_clamp);
     tex.set_wrap_v(_wrap_v ? EggTexture::WM_repeat : EggTexture::WM_clamp);
 
 
+    // Let's mipmap all textures by default.
+    tex.set_minfilter(EggTexture::FT_linear_mipmap_linear);
+    tex.set_magfilter(EggTexture::FT_linear);
+
     LMatrix3d mat = compute_texture_matrix();
     LMatrix3d mat = compute_texture_matrix();
     if (!mat.almost_equal(LMatrix3d::ident_mat())) {
     if (!mat.almost_equal(LMatrix3d::ident_mat())) {
       tex.set_transform(mat);
       tex.set_transform(mat);