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

Changed README example to use WebGLRenderer.

上级 f220bc4d
......@@ -41,7 +41,7 @@ This code creates a scene, a camera, and a geometric cube, and it adds the cube
mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
renderer = new THREE.CanvasRenderer();
renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
......@@ -61,7 +61,7 @@ This code creates a scene, a camera, and a geometric cube, and it adds the cube
</script>
```
If everything went well you should see [this](http://jsfiddle.net/Q7DLQ/).
If everything went well you should see [this](http://jsfiddle.net/f17Lz5ux/).
### Change log ###
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册