提交 0709e797 编写于 作者: M Mr.doob

Simplified usage example.

上级 d06aa42e
......@@ -22,8 +22,8 @@ This code creates a scene, then creates a camera, adds the camera and cube to th
```html
<script>
var camera, scene, renderer,
geometry, material, mesh;
var camera, scene, renderer;
var geometry, material, mesh;
init();
animate();
......@@ -52,11 +52,6 @@ This code creates a scene, then creates a camera, adds the camera and cube to th
// note: three.js includes requestAnimationFrame shim
requestAnimationFrame( animate );
render();
}
function render() {
mesh.rotation.x += 0.01;
mesh.rotation.y += 0.02;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册