Open bengben opened 9 years ago
Correct... the book gets odd in that area, as later snippets in the book show
(page 16) renderer.setClearColorHex() renderer.setClearColor(new THREE.Color(0xEEEEEE));
which is also hosed.
The correct line is:
renderer.setClearColor(new THREE.Color(0xEEEEEE, 1.0));
renderer.setClearColor(0xEEEEEE, 1) also works. I didn't need to use THREE.Color at all.
In:【 learning-threejs/chapter-01/02-first-scene.html 】
the method setClearColorHex() has changed to setClearColor() ?