提交 64637ea4 编写于 作者: T Takahiro

Clean up the GLTF2Loader code

上级 ea4cea26
......@@ -1430,7 +1430,8 @@ THREE.GLTF2Loader = ( function () {
_texture.type = texture.type !== undefined ? WEBGL_TEXTURE_DATATYPES[ texture.type ] : THREE.UnsignedByteType;
var sampler = texture.sampler === undefined ? {} : json.samplers[ texture.sampler ];
var samplers = json.samplers || {};
var sampler = samplers[ texture.sampler ] || {};
_texture.magFilter = WEBGL_FILTERS[ sampler.magFilter ] || THREE.LinearFilter;
_texture.minFilter = WEBGL_FILTERS[ sampler.minFilter ] || THREE.NearestMipMapLinearFilter;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册