Skip to content

Commit

Permalink
Changed README example to use WebGLRenderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 11, 2014
1 parent f220bc4 commit bb3c743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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 );
Expand All @@ -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 ###

Expand Down

0 comments on commit bb3c743

Please sign in to comment.