You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This helps with visualizing what a camera contains in its frustum. It
15
+
* visualizes the frustum of a camera using a line segments.
16
+
*
17
+
* Based on frustum visualization in [lightgl.js shadowmap example]{@link https://github.com/evanw/lightgl.js/blob/master/tests/shadowmap.html}.
18
+
*
19
+
* `CameraHelper` must be a child of the scene.
20
+
*
21
+
* ```js
22
+
* const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
23
+
* const helper = new THREE.CameraHelper( camera );
24
+
* scene.add( helper );
25
+
* ```
26
+
*
27
+
* @augments LineSegments
18
28
*/
19
-
20
29
classCameraHelperextendsLineSegments{
21
30
31
+
/**
32
+
* Constructs a new arror helper.
33
+
*
34
+
* @param {Camera} camera - The camera to visualize.
35
+
*/
22
36
constructor(camera){
23
37
24
38
constgeometry=newBufferGeometry();
@@ -105,12 +119,22 @@ class CameraHelper extends LineSegments {
0 commit comments