|
@@ -1,20 +1,18 @@
|
|
import { PerspectiveCamera } from './PerspectiveCamera.js';
|
|
import { PerspectiveCamera } from './PerspectiveCamera.js';
|
|
|
|
|
|
-function ArrayCamera( array = [] ) {
|
|
|
|
|
|
+class ArrayCamera extends PerspectiveCamera {
|
|
|
|
|
|
- PerspectiveCamera.call( this );
|
|
|
|
|
|
+ constructor( array = [] ) {
|
|
|
|
|
|
- this.cameras = array;
|
|
|
|
|
|
+ super();
|
|
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-ArrayCamera.prototype = Object.assign( Object.create( PerspectiveCamera.prototype ), {
|
|
|
|
|
|
+ this.cameras = array;
|
|
|
|
|
|
- constructor: ArrayCamera,
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- isArrayCamera: true
|
|
|
|
|
|
+}
|
|
|
|
|
|
-} );
|
|
|
|
|
|
+ArrayCamera.prototype.isArrayCamera = true;
|
|
|
|
|
|
|
|
|
|
export { ArrayCamera };
|
|
export { ArrayCamera };
|