| | |
| | | if (child instanceof THREE.Mesh) { |
| | | child.scale.set(1, 1, 1.6); |
| | | child.material = new THREE.MeshLambertMaterial({ |
| | | color: 0x8B8378 |
| | | color: 0x444444 |
| | | }); |
| | | if (child.name === "Box034" || child.name === "Box035") { |
| | | child.material = new THREE.MeshLambertMaterial({ |
| | | color: 0x000000 |
| | | }); |
| | | } |
| | | child.castShadow = true; |
| | | child.receiveShadow = true; |
| | | } |
| | | }); |
| | | |
| | | chainList.map(item => { |
| | | that.object.addObject(customize(obj.clone(), item)); |
| | | }) |
| | |
| | | if (child instanceof THREE.Mesh) { |
| | | child.scale.set(0.5, 1, 1); |
| | | child.material = new THREE.MeshLambertMaterial({ |
| | | color: 0x8B8378 |
| | | color: 0x444444 |
| | | }); |
| | | child.castShadow = true; |
| | | child.receiveShadow = true; |
| | | } |
| | | }); |
| | | rollerList.map(item => { |
| | |
| | | if (child instanceof THREE.Mesh) { |
| | | child.scale.set(1, 1, 1); |
| | | child.material = new THREE.MeshLambertMaterial({ |
| | | color: 0x8B8378 |
| | | color: 0x444444 |
| | | }); |
| | | } |
| | | }); |