Skip to content

Commit

Permalink
Update CubeCamera.html
Browse files Browse the repository at this point in the history
The `.setVisible` method is not in the Mesh documentation, or in the Object3D documentation. Changed this according to here: mrdoob#251 (comment)
  • Loading branch information
albertl2 committed Apr 12, 2019
1 parent 04c4fb0 commit 4b570d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/en/cameras/CubeCamera.html
Expand Up @@ -29,12 +29,12 @@ <h2>Examples</h2>
scene.add( car );

// Update the render target cube
car.setVisible( false );
car.visible = false;
cubeCamera.position.copy( car.position );
cubeCamera.update( renderer, scene );

// Render the scene
car.setVisible( true );
car.visible = true;
renderer.render( scene, camera );
</code>

Expand Down

0 comments on commit 4b570d3

Please sign in to comment.