Gregg Tavares 6 years ago
parent
commit
9fa5adc537
1 changed files with 2 additions and 2 deletions
  1. 2 2
      threejs/lessons/threejs-custom-geometry.md

+ 2 - 2
threejs/lessons/threejs-custom-geometry.md

@@ -242,8 +242,8 @@ geometry.computeFaceNormals();
 Removing the vertex color stuff and changing the material back to `MeshPhongMaterial`
 
 ```js
-+const material = new THREE.MeshBasicMaterial({vertexColors: THREE.VertexColors});
--const material = new THREE.MeshPhongMaterial({color});
+-const material = new THREE.MeshBasicMaterial({vertexColors: THREE.VertexColors});
++const material = new THREE.MeshPhongMaterial({color});
 ```
 
 and now our cubes can be lit.