提交 36493a73 编写于 作者: D David Lyons

apply bump and normal map with fbx loader, use array for multi material

上级 f9edcec8
......@@ -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.
先完成此消息的编辑!
想要评论请 注册