This helps with visualizing what a camera contains in its frustum.
It visualizes the frustum of a camera using a [page:LineSegments].
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
const helper = new THREE.CameraHelper( camera );
scene.add( helper );
[example:webgl_camera WebGL / camera]
[example:webgl_geometry_extrude_splines WebGL / extrude / splines]
[page:Camera camera] -- The camera to visualize.
This create a new [Name] for the specified camera.
See the base [page:LineSegments] class for common properties.
The camera being visualized.
This contains the points used to visualize the camera.
Reference to the [page:Object3D.matrixWorld camera.matrixWorld].
See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the camera's [page:Object3D.matrixWorld matrixWorld].
See the base [page:LineSegments] class for common methods.
Disposes of the internally-created [page:Line.material material] and [page:Line.geometry geometry] used by this helper.
Updates the helper based on the projectionMatrix of the camera.
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]