提交 ebbe091b 编写于 作者: T Takahiro

Accept texture.source/sampler=0 in GLTF2Loader

上级 3faad2bf
......@@ -1063,7 +1063,7 @@ THREE.GLTF2Loader = ( function () {
return _each( json.textures, function ( texture ) {
if ( texture.source ) {
if ( texture.source !== undefined ) {
return new Promise( function ( resolve ) {
......@@ -1103,7 +1103,7 @@ THREE.GLTF2Loader = ( function () {
_texture.type = texture.type !== undefined ? WEBGL_TEXTURE_DATATYPES[ texture.type ] : THREE.UnsignedByteType;
if ( texture.sampler ) {
if ( texture.sampler !== undefined ) {
var sampler = json.samplers[ texture.sampler ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册