|
|
@@ -29,14 +29,6 @@ class Camera extends Object3D {
|
|
|
|
|
|
this.type = 'Camera';
|
|
|
|
|
|
- /**
|
|
|
- * The flag that indicates whether the camera uses a reversed depth buffer.
|
|
|
- *
|
|
|
- * @type {boolean}
|
|
|
- * @default false
|
|
|
- */
|
|
|
- this.reversedDepth = false;
|
|
|
-
|
|
|
/**
|
|
|
* The inverse of the camera's world matrix.
|
|
|
*
|
|
|
@@ -65,6 +57,20 @@ class Camera extends Object3D {
|
|
|
*/
|
|
|
this.coordinateSystem = WebGLCoordinateSystem;
|
|
|
|
|
|
+ this._reversedDepth = false;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * The flag that indicates whether the camera uses a reversed depth buffer.
|
|
|
+ *
|
|
|
+ * @type {boolean}
|
|
|
+ * @default false
|
|
|
+ */
|
|
|
+ get reversedDepth() {
|
|
|
+
|
|
|
+ return this._reversedDepth;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
copy( source, recursive ) {
|