ArrayCamera.js 375 B

123456789101112131415161718192021222324
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. import { PerspectiveCamera } from './PerspectiveCamera';
  5. function ArrayCamera( array ) {
  6. PerspectiveCamera.call( this );
  7. this.cameras = array || [];
  8. }
  9. ArrayCamera.prototype = Object.assign( Object.create( PerspectiveCamera.prototype ), {
  10. constructor: ArrayCamera,
  11. isArrayCamera: true
  12. } );
  13. export { ArrayCamera };