mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
mipmap by default
This commit is contained in:
parent
1088a9625c
commit
8acb798ae8
@ -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_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();
|
||||
if (!mat.almost_equal(LMatrix3d::ident_mat())) {
|
||||
tex.set_transform(mat);
|
||||
|
Loading…
x
Reference in New Issue
Block a user