Skip to content

Commit b67879b

Browse files
committed
Add getter for reversedDepth
1 parent 07b3369 commit b67879b

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/cameras/Camera.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ class Camera extends Object3D {
2929

3030
this.type = 'Camera';
3131

32-
/**
33-
* The flag that indicates whether the camera uses a reversed depth buffer.
34-
*
35-
* @private
36-
* @type {boolean}
37-
* @default false
38-
*/
39-
this._reversedDepth = false;
40-
4132
/**
4233
* The inverse of the camera's world matrix.
4334
*
@@ -66,6 +57,20 @@ class Camera extends Object3D {
6657
*/
6758
this.coordinateSystem = WebGLCoordinateSystem;
6859

60+
this._reversedDepth = false;
61+
62+
}
63+
64+
/**
65+
* The flag that indicates whether the camera uses a reversed depth buffer.
66+
*
67+
* @type {boolean}
68+
* @default false
69+
*/
70+
get reversedDepth() {
71+
72+
return this._reversedDepth;
73+
6974
}
7075

7176
copy( source, recursive ) {

0 commit comments

Comments
 (0)