Skip to content

Commit

Permalink
README: Removed requestAnimationFrame note.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 11, 2014
1 parent 9410c18 commit dc0eaeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ This code creates a scene, a camera, and a geometric cube, and it adds the cube
geometry = new THREE.BoxGeometry( 200, 200, 200 );
material = new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } );
mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
renderer = new THREE.CanvasRenderer();
Expand All @@ -50,7 +50,6 @@ This code creates a scene, a camera, and a geometric cube, and it adds the cube
function animate() {
// note: three.js includes requestAnimationFrame shim
requestAnimationFrame( animate );
mesh.rotation.x += 0.01;
Expand All @@ -62,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/Gy4w7/).
If everything went well you should see [this](http://jsfiddle.net/Q7DLQ/).

### Change log ###

Expand Down

0 comments on commit dc0eaeb

Please sign in to comment.