diff --git a/chapter-02/04-geometries.html b/chapter-02/04-geometries.html index 26962870..d0072134 100644 --- a/chapter-02/04-geometries.html +++ b/chapter-02/04-geometries.html @@ -144,13 +144,9 @@ var j=0; for (var i = 0 ; i < geoms.length ; i++) { - var cubeMaterial = new THREE.MeshLambertMaterial({wireframe: true, color: Math.random() * 0xffffff }); - var materials = [ - new THREE.MeshLambertMaterial( { color: Math.random() * 0xffffff, shading: THREE.FlatShading } ), new THREE.MeshBasicMaterial( { color: 0x000000, wireframe: true } ) - ]; var mesh = THREE.SceneUtils.createMultiMaterialObject(geoms[i],materials);