//需要在FBXLoader.js中调整 parseMaterial
//如果想要毛茸茸的感觉,需要lambert;如果是塑胶光亮感,用phong
switch ( type.toLowerCase() ) {
case 'phong':
material = new THREE.MeshPhongMaterial();
break;
case 'lambert':
material = new THREE.MeshLambertMaterial();
break;
default:
console.warn( 'THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.', type );
material = new THREE.MeshPhongMaterial( { color: 0x3300ff } );
break;
}
将上面整段代码注释掉,
material = new THREE.MeshLambertMaterial();
以上代码仅适用于fbx模型加载的three.js动画。
因为模型设计的是毛茸茸的感觉,但是导入3d模型后(FBXLoader解析后),变成了塑胶的光亮感。所以在FBXLoader.js中强制修改所有材质都为lambert