当前位置:   article > 正文

threejs给模型替换材质_threejs修改模型材质

threejs修改模型材质

if (obj.isMesh) {

                    let tMaterial = new THREE.MeshBasicMaterial({})

                    tMaterial.copy(obj.material)

                    obj.material=tMaterial;

                    obj.castShadow = true; //投射阴影

                    obj.receiveShadow = true; //接受阴影;

                }

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/95902
推荐阅读
相关标签
  

闽ICP备14008679号