提交 22fbb30d 编写于 作者: M Mr.doob

Updated example in README.md (Cube -> CubeGeometry). Thx @adammw!

上级 5bf5c6ef
......@@ -99,7 +99,7 @@ This code creates a camera, then creates a scene, adds a cube on it, creates a &
scene = new THREE.Scene();
geometry = new THREE.Cube( 200, 200, 200 );
geometry = new THREE.CubeGeometry( 200, 200, 200 );
material = new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } );
mesh = new THREE.Mesh( geometry, material );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册