未验证 提交 22f1bdfa 编写于 作者: M Michael Herzog 提交者: GitHub

Update README.md

Use `BoxBufferGeometry` instead of `BoxGeometry`.
上级 ada97702
......@@ -39,7 +39,7 @@ function init() {
scene = new THREE.Scene();
geometry = new THREE.BoxGeometry( 0.2, 0.2, 0.2 );
geometry = new THREE.BoxBufferGeometry( 0.2, 0.2, 0.2 );
material = new THREE.MeshNormalMaterial();
mesh = new THREE.Mesh( geometry, material );
......@@ -62,7 +62,7 @@ function animation( time ) {
}
```
If everything went well, you should see [this](https://jsfiddle.net/yf6nks2o/).
If everything went well, you should see [this](https://jsfiddle.net/9v7eqwu1/).
### Cloning this repository ###
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册