| | |
| | | .load( '堆垛机本体.obj', function ( obj ) { |
| | | obj.traverse (function (child) { |
| | | child.castShadow = true; |
| | | child.receiveShadow = true; |
| | | // child.receiveShadow = true; |
| | | if (child instanceof THREE.Mesh) { |
| | | child.material = new THREE.MeshLambertMaterial({ |
| | | color: 0xCD6839 |
| | |
| | | obj.traverse (function (child) { |
| | | if (child instanceof THREE.Mesh) { |
| | | child.castShadow = true; |
| | | child.receiveShadow = true; |
| | | // child.receiveShadow = true; |
| | | child.material = new THREE.MeshLambertMaterial({ |
| | | color: 0xD2691E |
| | | }); |
| | |
| | | obj.traverse (function (child) { |
| | | if (child instanceof THREE.Mesh) { |
| | | child.castShadow = true; |
| | | child.receiveShadow = true; |
| | | // child.receiveShadow = true; |
| | | child.material = new THREE.MeshLambertMaterial({ |
| | | color: 0x363636 |
| | | }); |