Three.js 如何将UTF8模型与MeshPhongMaterial等材质一起使用?
我非常想使用utf8格式,因为它非常轻,但是webgl_loader_utf8.html示例中的材质设置如下:Three.js 如何将UTF8模型与MeshPhongMaterial等材质一起使用?,three.js,Three.js,我非常想使用utf8格式,因为它非常轻,但是webgl_loader_utf8.html示例中的材质设置如下: object.traverse( function( node ) { node.castShadow = true; node.receiveShadow = true;
object.traverse( function( node ) {
node.castShadow = true;
node.receiveShadow = true;
if ( node.material && node.material.name === "skin" ) {
node.material.wrapAround = true;
node.material.wrapRGB.set( 0.6, 0.2, 0.1 );
}
}
);
我以前没见过这个,所以我不明白
我可以将utf8loader与一些普通材质(如MeshPhongMaterial)一起使用吗?如何做到这一点
或者,如果这不是不可能的话,那么有人能给我一些关于这类材料的信息吗
多谢各位。(Three.js r65)您是否尝试过材料的光泽度
object.traverse( function( node ) {
node.castShadow = true;
node.receiveShadow = true;
if ( node.material && node.material.name === "skin" ) {
node.material.wrapAround = true;
node.material.wrapRGB.set( 0.6, 0.2, 0.1 );
node.material.shininess = 100; // it should between 0-1000
}
});