Remove minFilter and magFilter

This commit is contained in:
Sean Lilley 2020-05-11 09:28:18 -04:00
parent 2634c25e33
commit 4270358310
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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
});