PHP 7.4.33
Preview: ArrayCamera.js Size: 1.02 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/three/src/cameras/ArrayCamera.js
import { PerspectiveCamera } from './PerspectiveCamera.js';

/**
 * This type of camera can be used in order to efficiently render a scene with a
 * predefined set of cameras. This is an important performance aspect for
 * rendering VR scenes.
 *
 * An instance of `ArrayCamera` always has an array of sub cameras. It's mandatory
 * to define for each sub camera the `viewport` property which determines the
 * part of the viewport that is rendered with this camera.
 *
 * @augments PerspectiveCamera
 */
class ArrayCamera extends PerspectiveCamera {

	/**
	 * Constructs a new array camera.
	 *
	 * @param {Array<PerspectiveCamera>} [array=[]] - An array of perspective sub cameras.
	 */
	constructor( array = [] ) {

		super();

		/**
		 * This flag can be used for type testing.
		 *
		 * @type {boolean}
		 * @readonly
		 * @default true
		 */
		this.isArrayCamera = true;

		/**
		 * An array of perspective sub cameras.
		 *
		 * @type {Array<PerspectiveCamera>}
		 */
		this.cameras = array;
		this.index = 0;

	}

}

export { ArrayCamera };

Directory Contents

Dirs: 0 × Files: 6
Name Size Perms Modified Actions
1.02 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
2.32 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
6.22 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
5.66 KB lrwxr-xr-x 2025-03-28 11:04:38
Edit Download
10.39 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
3.87 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).