diff --git a/CHANGES.md b/CHANGES.md index 3d5a810..72d2e54 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,10 @@ Change Log ========== +### 3.?.? - 2021-??-?? + +* Removed `minFilter` and `magFilter` from generated samplers so that runtime engines can use their preferred texture filtering. [#240](https://github.com/CesiumGS/obj2gltf/pull/240) + ### 3.1.1 - 2021-06-22 * Fixed security warnings by updating outdated npm dependencies. [#254](https://github.com/CesiumGS/obj2gltf/pull/254) diff --git a/lib/createGltf.js b/lib/createGltf.js index 5d011b1..4d98382 100644 --- a/lib/createGltf.js +++ b/lib/createGltf.js @@ -89,8 +89,6 @@ function createGltf(objData, options) { if (gltf.images.length > 0) { gltf.samplers.push({ - magFilter : WebGLConstants.LINEAR, - minFilter : WebGLConstants.NEAREST_MIPMAP_LINEAR, wrapS : WebGLConstants.REPEAT, wrapT : WebGLConstants.REPEAT });