diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/TextureSamplerUtil.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/TextureSamplerUtil.cs index 528fc12b4..f7ce07b14 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/TextureSamplerUtil.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/TextureIO/TextureSamplerUtil.cs @@ -88,7 +88,6 @@ namespace UniGLTF return (FilterMode.Point, false); // mipmap: disable - case glFilter.NONE: case glFilter.LINEAR: return (FilterMode.Bilinear, false); @@ -110,6 +109,10 @@ namespace UniGLTF case glFilter.LINEAR_MIPMAP_LINEAR: return (FilterMode.Trilinear, true); + // default + case glFilter.NONE: + return (FilterMode.Bilinear, true); + default: throw new NotImplementedException(); } diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/SamplerParam.cs b/Assets/VRMShaders/GLTF/IO/Runtime/SamplerParam.cs index a44aa7e2a..b59ebf3e1 100644 --- a/Assets/VRMShaders/GLTF/IO/Runtime/SamplerParam.cs +++ b/Assets/VRMShaders/GLTF/IO/Runtime/SamplerParam.cs @@ -18,7 +18,7 @@ namespace VRMShaders FilterMode = FilterMode.Bilinear, WrapModesU = TextureWrapMode.Repeat, WrapModesV = TextureWrapMode.Repeat, - EnableMipMap = false, + EnableMipMap = true, }; }