提交 564ac302 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11339 from davidlyons/fbx-materials

FBX Loader bump and normal, use array for multi material
......@@ -510,11 +510,19 @@
parameters.map = textureMap.get( relationship.ID );
break;
case " \"AmbientColor":
case "Bump":
case " \"Bump":
parameters.bumpMap = textureMap.get( relationship.ID );
break;
case "NormalMap":
case " \"NormalMap":
parameters.normalMap = textureMap.get( relationship.ID );
break;
case " \"AmbientColor":
case " \"EmissiveColor":
case "AmbientColor":
case "Bump":
case "EmissiveColor":
default:
console.warn( 'Unknown texture application of type ' + type + ', skipping texture' );
......@@ -1362,7 +1370,7 @@
}
if ( materials.length > 1 ) {
material = new THREE.MultiMaterial( materials );
material = materials;
} else if ( materials.length > 0 ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册