Mr.doob 4 лет назад
Родитель
Сommit
ee546ee074
3 измененных файлов с 261 добавлено и 206 удалено
  1. 158 111
      build/three.js
  2. 0 0
      build/three.min.js
  3. 103 95
      build/three.module.js

+ 158 - 111
build/three.js

@@ -10169,49 +10169,77 @@
 	var fov = 90,
 	var fov = 90,
 			aspect = 1;
 			aspect = 1;
 
 
-	function CubeCamera(near, far, renderTarget) {
-		Object3D.call(this);
-		this.type = 'CubeCamera';
+	var CubeCamera = /*#__PURE__*/function (_Object3D) {
+		_inheritsLoose(CubeCamera, _Object3D);
 
 
-		if (renderTarget.isWebGLCubeRenderTarget !== true) {
-			console.error('THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.');
-			return;
+		function CubeCamera(near, far, renderTarget) {
+			var _this;
+
+			_this = _Object3D.call(this) || this;
+			_this.type = 'CubeCamera';
+
+			if (renderTarget.isWebGLCubeRenderTarget !== true) {
+				console.error('THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.');
+				return _assertThisInitialized(_this);
+			}
+
+			_this.renderTarget = renderTarget;
+			var cameraPX = new PerspectiveCamera(fov, aspect, near, far);
+			cameraPX.layers = _this.layers;
+			cameraPX.up.set(0, -1, 0);
+			cameraPX.lookAt(new Vector3(1, 0, 0));
+
+			_this.add(cameraPX);
+
+			var cameraNX = new PerspectiveCamera(fov, aspect, near, far);
+			cameraNX.layers = _this.layers;
+			cameraNX.up.set(0, -1, 0);
+			cameraNX.lookAt(new Vector3(-1, 0, 0));
+
+			_this.add(cameraNX);
+
+			var cameraPY = new PerspectiveCamera(fov, aspect, near, far);
+			cameraPY.layers = _this.layers;
+			cameraPY.up.set(0, 0, 1);
+			cameraPY.lookAt(new Vector3(0, 1, 0));
+
+			_this.add(cameraPY);
+
+			var cameraNY = new PerspectiveCamera(fov, aspect, near, far);
+			cameraNY.layers = _this.layers;
+			cameraNY.up.set(0, 0, -1);
+			cameraNY.lookAt(new Vector3(0, -1, 0));
+
+			_this.add(cameraNY);
+
+			var cameraPZ = new PerspectiveCamera(fov, aspect, near, far);
+			cameraPZ.layers = _this.layers;
+			cameraPZ.up.set(0, -1, 0);
+			cameraPZ.lookAt(new Vector3(0, 0, 1));
+
+			_this.add(cameraPZ);
+
+			var cameraNZ = new PerspectiveCamera(fov, aspect, near, far);
+			cameraNZ.layers = _this.layers;
+			cameraNZ.up.set(0, -1, 0);
+			cameraNZ.lookAt(new Vector3(0, 0, -1));
+
+			_this.add(cameraNZ);
+
+			return _this;
 		}
 		}
 
 
-		this.renderTarget = renderTarget;
-		var cameraPX = new PerspectiveCamera(fov, aspect, near, far);
-		cameraPX.layers = this.layers;
-		cameraPX.up.set(0, -1, 0);
-		cameraPX.lookAt(new Vector3(1, 0, 0));
-		this.add(cameraPX);
-		var cameraNX = new PerspectiveCamera(fov, aspect, near, far);
-		cameraNX.layers = this.layers;
-		cameraNX.up.set(0, -1, 0);
-		cameraNX.lookAt(new Vector3(-1, 0, 0));
-		this.add(cameraNX);
-		var cameraPY = new PerspectiveCamera(fov, aspect, near, far);
-		cameraPY.layers = this.layers;
-		cameraPY.up.set(0, 0, 1);
-		cameraPY.lookAt(new Vector3(0, 1, 0));
-		this.add(cameraPY);
-		var cameraNY = new PerspectiveCamera(fov, aspect, near, far);
-		cameraNY.layers = this.layers;
-		cameraNY.up.set(0, 0, -1);
-		cameraNY.lookAt(new Vector3(0, -1, 0));
-		this.add(cameraNY);
-		var cameraPZ = new PerspectiveCamera(fov, aspect, near, far);
-		cameraPZ.layers = this.layers;
-		cameraPZ.up.set(0, -1, 0);
-		cameraPZ.lookAt(new Vector3(0, 0, 1));
-		this.add(cameraPZ);
-		var cameraNZ = new PerspectiveCamera(fov, aspect, near, far);
-		cameraNZ.layers = this.layers;
-		cameraNZ.up.set(0, -1, 0);
-		cameraNZ.lookAt(new Vector3(0, 0, -1));
-		this.add(cameraNZ);
-
-		this.update = function (renderer, scene) {
+		var _proto = CubeCamera.prototype;
+
+		_proto.update = function update(renderer, scene) {
 			if (this.parent === null) this.updateMatrixWorld();
 			if (this.parent === null) this.updateMatrixWorld();
+			var renderTarget = this.renderTarget;
+			var cameraPX = this.children[0];
+			var cameraNX = this.children[1];
+			var cameraPY = this.children[2];
+			var cameraNY = this.children[3];
+			var cameraPZ = this.children[4];
+			var cameraNZ = this.children[5];
 			var currentXrEnabled = renderer.xr.enabled;
 			var currentXrEnabled = renderer.xr.enabled;
 			var currentRenderTarget = renderer.getRenderTarget();
 			var currentRenderTarget = renderer.getRenderTarget();
 			renderer.xr.enabled = false;
 			renderer.xr.enabled = false;
@@ -10233,10 +10261,9 @@
 			renderer.setRenderTarget(currentRenderTarget);
 			renderer.setRenderTarget(currentRenderTarget);
 			renderer.xr.enabled = currentXrEnabled;
 			renderer.xr.enabled = currentXrEnabled;
 		};
 		};
-	}
 
 
-	CubeCamera.prototype = Object.create(Object3D.prototype);
-	CubeCamera.prototype.constructor = CubeCamera;
+		return CubeCamera;
+	}(Object3D);
 
 
 	function CubeTexture(images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding) {
 	function CubeTexture(images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding) {
 		images = images !== undefined ? images : [];
 		images = images !== undefined ? images : [];
@@ -29414,49 +29441,57 @@
 
 
 	PointLight.prototype.isPointLight = true;
 	PointLight.prototype.isPointLight = true;
 
 
-	function OrthographicCamera(left, right, top, bottom, near, far) {
-		if (left === void 0) {
-			left = -1;
-		}
+	var OrthographicCamera = /*#__PURE__*/function (_Camera) {
+		_inheritsLoose(OrthographicCamera, _Camera);
 
 
-		if (right === void 0) {
-			right = 1;
-		}
+		function OrthographicCamera(left, right, top, bottom, near, far) {
+			var _this;
 
 
-		if (top === void 0) {
-			top = 1;
-		}
+			if (left === void 0) {
+				left = -1;
+			}
 
 
-		if (bottom === void 0) {
-			bottom = -1;
-		}
+			if (right === void 0) {
+				right = 1;
+			}
 
 
-		if (near === void 0) {
-			near = 0.1;
-		}
+			if (top === void 0) {
+				top = 1;
+			}
 
 
-		if (far === void 0) {
-			far = 2000;
+			if (bottom === void 0) {
+				bottom = -1;
+			}
+
+			if (near === void 0) {
+				near = 0.1;
+			}
+
+			if (far === void 0) {
+				far = 2000;
+			}
+
+			_this = _Camera.call(this) || this;
+			_this.type = 'OrthographicCamera';
+			_this.zoom = 1;
+			_this.view = null;
+			_this.left = left;
+			_this.right = right;
+			_this.top = top;
+			_this.bottom = bottom;
+			_this.near = near;
+			_this.far = far;
+
+			_this.updateProjectionMatrix();
+
+			return _this;
 		}
 		}
 
 
-		Camera.call(this);
-		this.type = 'OrthographicCamera';
-		this.zoom = 1;
-		this.view = null;
-		this.left = left;
-		this.right = right;
-		this.top = top;
-		this.bottom = bottom;
-		this.near = near;
-		this.far = far;
-		this.updateProjectionMatrix();
-	}
+		var _proto = OrthographicCamera.prototype;
+
+		_proto.copy = function copy(source, recursive) {
+			_Camera.prototype.copy.call(this, source, recursive);
 
 
-	OrthographicCamera.prototype = Object.assign(Object.create(Camera.prototype), {
-		constructor: OrthographicCamera,
-		isOrthographicCamera: true,
-		copy: function copy(source, recursive) {
-			Camera.prototype.copy.call(this, source, recursive);
 			this.left = source.left;
 			this.left = source.left;
 			this.right = source.right;
 			this.right = source.right;
 			this.top = source.top;
 			this.top = source.top;
@@ -29466,8 +29501,9 @@
 			this.zoom = source.zoom;
 			this.zoom = source.zoom;
 			this.view = source.view === null ? null : Object.assign({}, source.view);
 			this.view = source.view === null ? null : Object.assign({}, source.view);
 			return this;
 			return this;
-		},
-		setViewOffset: function setViewOffset(fullWidth, fullHeight, x, y, width, height) {
+		};
+
+		_proto.setViewOffset = function setViewOffset(fullWidth, fullHeight, x, y, width, height) {
 			if (this.view === null) {
 			if (this.view === null) {
 				this.view = {
 				this.view = {
 					enabled: true,
 					enabled: true,
@@ -29488,15 +29524,17 @@
 			this.view.width = width;
 			this.view.width = width;
 			this.view.height = height;
 			this.view.height = height;
 			this.updateProjectionMatrix();
 			this.updateProjectionMatrix();
-		},
-		clearViewOffset: function clearViewOffset() {
+		};
+
+		_proto.clearViewOffset = function clearViewOffset() {
 			if (this.view !== null) {
 			if (this.view !== null) {
 				this.view.enabled = false;
 				this.view.enabled = false;
 			}
 			}
 
 
 			this.updateProjectionMatrix();
 			this.updateProjectionMatrix();
-		},
-		updateProjectionMatrix: function updateProjectionMatrix() {
+		};
+
+		_proto.updateProjectionMatrix = function updateProjectionMatrix() {
 			var dx = (this.right - this.left) / (2 * this.zoom);
 			var dx = (this.right - this.left) / (2 * this.zoom);
 			var dy = (this.top - this.bottom) / (2 * this.zoom);
 			var dy = (this.top - this.bottom) / (2 * this.zoom);
 			var cx = (this.right + this.left) / 2;
 			var cx = (this.right + this.left) / 2;
@@ -29517,8 +29555,9 @@
 
 
 			this.projectionMatrix.makeOrthographic(left, right, top, bottom, this.near, this.far);
 			this.projectionMatrix.makeOrthographic(left, right, top, bottom, this.near, this.far);
 			this.projectionMatrixInverse.copy(this.projectionMatrix).invert();
 			this.projectionMatrixInverse.copy(this.projectionMatrix).invert();
-		},
-		toJSON: function toJSON(meta) {
+		};
+
+		_proto.toJSON = function toJSON(meta) {
 			var data = Object3D.prototype.toJSON.call(this, meta);
 			var data = Object3D.prototype.toJSON.call(this, meta);
 			data.object.zoom = this.zoom;
 			data.object.zoom = this.zoom;
 			data.object.left = this.left;
 			data.object.left = this.left;
@@ -29529,8 +29568,12 @@
 			data.object.far = this.far;
 			data.object.far = this.far;
 			if (this.view !== null) data.object.view = Object.assign({}, this.view);
 			if (this.view !== null) data.object.view = Object.assign({}, this.view);
 			return data;
 			return data;
-		}
-	});
+		};
+
+		return OrthographicCamera;
+	}(Camera);
+
+	OrthographicCamera.prototype.isOrthographicCamera = true;
 
 
 	var DirectionalLightShadow = /*#__PURE__*/function (_LightShadow) {
 	var DirectionalLightShadow = /*#__PURE__*/function (_LightShadow) {
 		_inheritsLoose(DirectionalLightShadow, _LightShadow);
 		_inheritsLoose(DirectionalLightShadow, _LightShadow);
@@ -31572,29 +31615,31 @@
 
 
 	var _eyeLeft = new Matrix4();
 	var _eyeLeft = new Matrix4();
 
 
-	function StereoCamera() {
-		this.type = 'StereoCamera';
-		this.aspect = 1;
-		this.eyeSep = 0.064;
-		this.cameraL = new PerspectiveCamera();
-		this.cameraL.layers.enable(1);
-		this.cameraL.matrixAutoUpdate = false;
-		this.cameraR = new PerspectiveCamera();
-		this.cameraR.layers.enable(2);
-		this.cameraR.matrixAutoUpdate = false;
-		this._cache = {
-			focus: null,
-			fov: null,
-			aspect: null,
-			near: null,
-			far: null,
-			zoom: null,
-			eyeSep: null
-		};
-	}
+	var StereoCamera = /*#__PURE__*/function () {
+		function StereoCamera() {
+			this.type = 'StereoCamera';
+			this.aspect = 1;
+			this.eyeSep = 0.064;
+			this.cameraL = new PerspectiveCamera();
+			this.cameraL.layers.enable(1);
+			this.cameraL.matrixAutoUpdate = false;
+			this.cameraR = new PerspectiveCamera();
+			this.cameraR.layers.enable(2);
+			this.cameraR.matrixAutoUpdate = false;
+			this._cache = {
+				focus: null,
+				fov: null,
+				aspect: null,
+				near: null,
+				far: null,
+				zoom: null,
+				eyeSep: null
+			};
+		}
+
+		var _proto = StereoCamera.prototype;
 
 
-	Object.assign(StereoCamera.prototype, {
-		update: function update(camera) {
+		_proto.update = function update(camera) {
 			var cache = this._cache;
 			var cache = this._cache;
 			var needsUpdate = cache.focus !== camera.focus || cache.fov !== camera.fov || cache.aspect !== camera.aspect * this.aspect || cache.near !== camera.near || cache.far !== camera.far || cache.zoom !== camera.zoom || cache.eyeSep !== this.eyeSep;
 			var needsUpdate = cache.focus !== camera.focus || cache.fov !== camera.fov || cache.aspect !== camera.aspect * this.aspect || cache.near !== camera.near || cache.far !== camera.far || cache.zoom !== camera.zoom || cache.eyeSep !== this.eyeSep;
 
 
@@ -31632,8 +31677,10 @@
 
 
 			this.cameraL.matrixWorld.copy(camera.matrixWorld).multiply(_eyeLeft);
 			this.cameraL.matrixWorld.copy(camera.matrixWorld).multiply(_eyeLeft);
 			this.cameraR.matrixWorld.copy(camera.matrixWorld).multiply(_eyeRight);
 			this.cameraR.matrixWorld.copy(camera.matrixWorld).multiply(_eyeRight);
-		}
-	});
+		};
+
+		return StereoCamera;
+	}();
 
 
 	var Clock = /*#__PURE__*/function () {
 	var Clock = /*#__PURE__*/function () {
 		function Clock(autoStart) {
 		function Clock(autoStart) {

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/three.min.js


+ 103 - 95
build/three.module.js

@@ -11822,61 +11822,74 @@ PerspectiveCamera.prototype = Object.assign( Object.create( Camera.prototype ),
 
 
 const fov = 90, aspect = 1;
 const fov = 90, aspect = 1;
 
 
-function CubeCamera( near, far, renderTarget ) {
+class CubeCamera extends Object3D {
 
 
-	Object3D.call( this );
+	constructor( near, far, renderTarget ) {
 
 
-	this.type = 'CubeCamera';
+		super();
 
 
-	if ( renderTarget.isWebGLCubeRenderTarget !== true ) {
+		this.type = 'CubeCamera';
 
 
-		console.error( 'THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.' );
-		return;
+		if ( renderTarget.isWebGLCubeRenderTarget !== true ) {
 
 
-	}
+			console.error( 'THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.' );
+			return;
+
+		}
 
 
-	this.renderTarget = renderTarget;
+		this.renderTarget = renderTarget;
 
 
-	const cameraPX = new PerspectiveCamera( fov, aspect, near, far );
-	cameraPX.layers = this.layers;
-	cameraPX.up.set( 0, - 1, 0 );
-	cameraPX.lookAt( new Vector3( 1, 0, 0 ) );
-	this.add( cameraPX );
+		const cameraPX = new PerspectiveCamera( fov, aspect, near, far );
+		cameraPX.layers = this.layers;
+		cameraPX.up.set( 0, - 1, 0 );
+		cameraPX.lookAt( new Vector3( 1, 0, 0 ) );
+		this.add( cameraPX );
 
 
-	const cameraNX = new PerspectiveCamera( fov, aspect, near, far );
-	cameraNX.layers = this.layers;
-	cameraNX.up.set( 0, - 1, 0 );
-	cameraNX.lookAt( new Vector3( - 1, 0, 0 ) );
-	this.add( cameraNX );
+		const cameraNX = new PerspectiveCamera( fov, aspect, near, far );
+		cameraNX.layers = this.layers;
+		cameraNX.up.set( 0, - 1, 0 );
+		cameraNX.lookAt( new Vector3( - 1, 0, 0 ) );
+		this.add( cameraNX );
 
 
-	const cameraPY = new PerspectiveCamera( fov, aspect, near, far );
-	cameraPY.layers = this.layers;
-	cameraPY.up.set( 0, 0, 1 );
-	cameraPY.lookAt( new Vector3( 0, 1, 0 ) );
-	this.add( cameraPY );
+		const cameraPY = new PerspectiveCamera( fov, aspect, near, far );
+		cameraPY.layers = this.layers;
+		cameraPY.up.set( 0, 0, 1 );
+		cameraPY.lookAt( new Vector3( 0, 1, 0 ) );
+		this.add( cameraPY );
 
 
-	const cameraNY = new PerspectiveCamera( fov, aspect, near, far );
-	cameraNY.layers = this.layers;
-	cameraNY.up.set( 0, 0, - 1 );
-	cameraNY.lookAt( new Vector3( 0, - 1, 0 ) );
-	this.add( cameraNY );
+		const cameraNY = new PerspectiveCamera( fov, aspect, near, far );
+		cameraNY.layers = this.layers;
+		cameraNY.up.set( 0, 0, - 1 );
+		cameraNY.lookAt( new Vector3( 0, - 1, 0 ) );
+		this.add( cameraNY );
 
 
-	const cameraPZ = new PerspectiveCamera( fov, aspect, near, far );
-	cameraPZ.layers = this.layers;
-	cameraPZ.up.set( 0, - 1, 0 );
-	cameraPZ.lookAt( new Vector3( 0, 0, 1 ) );
-	this.add( cameraPZ );
+		const cameraPZ = new PerspectiveCamera( fov, aspect, near, far );
+		cameraPZ.layers = this.layers;
+		cameraPZ.up.set( 0, - 1, 0 );
+		cameraPZ.lookAt( new Vector3( 0, 0, 1 ) );
+		this.add( cameraPZ );
 
 
-	const cameraNZ = new PerspectiveCamera( fov, aspect, near, far );
-	cameraNZ.layers = this.layers;
-	cameraNZ.up.set( 0, - 1, 0 );
-	cameraNZ.lookAt( new Vector3( 0, 0, - 1 ) );
-	this.add( cameraNZ );
+		const cameraNZ = new PerspectiveCamera( fov, aspect, near, far );
+		cameraNZ.layers = this.layers;
+		cameraNZ.up.set( 0, - 1, 0 );
+		cameraNZ.lookAt( new Vector3( 0, 0, - 1 ) );
+		this.add( cameraNZ );
 
 
-	this.update = function ( renderer, scene ) {
+	}
+
+	update( renderer, scene ) {
 
 
 		if ( this.parent === null ) this.updateMatrixWorld();
 		if ( this.parent === null ) this.updateMatrixWorld();
 
 
+		const renderTarget = this.renderTarget;
+
+		const cameraPX = this.children[ 0 ];
+		const cameraNX = this.children[ 1 ];
+		const cameraPY = this.children[ 2 ];
+		const cameraNY = this.children[ 3 ];
+		const cameraPZ = this.children[ 4 ];
+		const cameraNZ = this.children[ 5 ];
+
 		const currentXrEnabled = renderer.xr.enabled;
 		const currentXrEnabled = renderer.xr.enabled;
 		const currentRenderTarget = renderer.getRenderTarget();
 		const currentRenderTarget = renderer.getRenderTarget();
 
 
@@ -11910,13 +11923,10 @@ function CubeCamera( near, far, renderTarget ) {
 
 
 		renderer.xr.enabled = currentXrEnabled;
 		renderer.xr.enabled = currentXrEnabled;
 
 
-	};
+	}
 
 
 }
 }
 
 
-CubeCamera.prototype = Object.create( Object3D.prototype );
-CubeCamera.prototype.constructor = CubeCamera;
-
 function CubeTexture( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ) {
 function CubeTexture( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ) {
 
 
 	images = images !== undefined ? images : [];
 	images = images !== undefined ? images : [];
@@ -37385,36 +37395,32 @@ class PointLight extends Light {
 
 
 PointLight.prototype.isPointLight = true;
 PointLight.prototype.isPointLight = true;
 
 
-function OrthographicCamera( left = - 1, right = 1, top = 1, bottom = - 1, near = 0.1, far = 2000 ) {
+class OrthographicCamera extends Camera {
 
 
-	Camera.call( this );
+	constructor( left = - 1, right = 1, top = 1, bottom = - 1, near = 0.1, far = 2000 ) {
 
 
-	this.type = 'OrthographicCamera';
+		super();
 
 
-	this.zoom = 1;
-	this.view = null;
+		this.type = 'OrthographicCamera';
 
 
-	this.left = left;
-	this.right = right;
-	this.top = top;
-	this.bottom = bottom;
+		this.zoom = 1;
+		this.view = null;
 
 
-	this.near = near;
-	this.far = far;
+		this.left = left;
+		this.right = right;
+		this.top = top;
+		this.bottom = bottom;
 
 
-	this.updateProjectionMatrix();
+		this.near = near;
+		this.far = far;
 
 
-}
-
-OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ), {
-
-	constructor: OrthographicCamera,
+		this.updateProjectionMatrix();
 
 
-	isOrthographicCamera: true,
+	}
 
 
-	copy: function ( source, recursive ) {
+	copy( source, recursive ) {
 
 
-		Camera.prototype.copy.call( this, source, recursive );
+		super.copy( source, recursive );
 
 
 		this.left = source.left;
 		this.left = source.left;
 		this.right = source.right;
 		this.right = source.right;
@@ -37428,9 +37434,9 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ),
 
 
 		return this;
 		return this;
 
 
-	},
+	}
 
 
-	setViewOffset: function ( fullWidth, fullHeight, x, y, width, height ) {
+	setViewOffset( fullWidth, fullHeight, x, y, width, height ) {
 
 
 		if ( this.view === null ) {
 		if ( this.view === null ) {
 
 
@@ -37456,9 +37462,9 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ),
 
 
 		this.updateProjectionMatrix();
 		this.updateProjectionMatrix();
 
 
-	},
+	}
 
 
-	clearViewOffset: function () {
+	clearViewOffset() {
 
 
 		if ( this.view !== null ) {
 		if ( this.view !== null ) {
 
 
@@ -37468,9 +37474,9 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ),
 
 
 		this.updateProjectionMatrix();
 		this.updateProjectionMatrix();
 
 
-	},
+	}
 
 
-	updateProjectionMatrix: function () {
+	updateProjectionMatrix() {
 
 
 		const dx = ( this.right - this.left ) / ( 2 * this.zoom );
 		const dx = ( this.right - this.left ) / ( 2 * this.zoom );
 		const dy = ( this.top - this.bottom ) / ( 2 * this.zoom );
 		const dy = ( this.top - this.bottom ) / ( 2 * this.zoom );
@@ -37498,9 +37504,9 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ),
 
 
 		this.projectionMatrixInverse.copy( this.projectionMatrix ).invert();
 		this.projectionMatrixInverse.copy( this.projectionMatrix ).invert();
 
 
-	},
+	}
 
 
-	toJSON: function ( meta ) {
+	toJSON( meta ) {
 
 
 		const data = Object3D.prototype.toJSON.call( this, meta );
 		const data = Object3D.prototype.toJSON.call( this, meta );
 
 
@@ -37518,7 +37524,9 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ),
 
 
 	}
 	}
 
 
-} );
+}
+
+OrthographicCamera.prototype.isOrthographicCamera = true;
 
 
 class DirectionalLightShadow extends LightShadow {
 class DirectionalLightShadow extends LightShadow {
 
 
@@ -40334,37 +40342,37 @@ AmbientLightProbe.prototype.isAmbientLightProbe = true;
 const _eyeRight = new Matrix4();
 const _eyeRight = new Matrix4();
 const _eyeLeft = new Matrix4();
 const _eyeLeft = new Matrix4();
 
 
-function StereoCamera() {
+class StereoCamera {
 
 
-	this.type = 'StereoCamera';
+	constructor() {
 
 
-	this.aspect = 1;
+		this.type = 'StereoCamera';
 
 
-	this.eyeSep = 0.064;
+		this.aspect = 1;
 
 
-	this.cameraL = new PerspectiveCamera();
-	this.cameraL.layers.enable( 1 );
-	this.cameraL.matrixAutoUpdate = false;
+		this.eyeSep = 0.064;
 
 
-	this.cameraR = new PerspectiveCamera();
-	this.cameraR.layers.enable( 2 );
-	this.cameraR.matrixAutoUpdate = false;
+		this.cameraL = new PerspectiveCamera();
+		this.cameraL.layers.enable( 1 );
+		this.cameraL.matrixAutoUpdate = false;
 
 
-	this._cache = {
-		focus: null,
-		fov: null,
-		aspect: null,
-		near: null,
-		far: null,
-		zoom: null,
-		eyeSep: null
-	};
+		this.cameraR = new PerspectiveCamera();
+		this.cameraR.layers.enable( 2 );
+		this.cameraR.matrixAutoUpdate = false;
 
 
-}
+		this._cache = {
+			focus: null,
+			fov: null,
+			aspect: null,
+			near: null,
+			far: null,
+			zoom: null,
+			eyeSep: null
+		};
 
 
-Object.assign( StereoCamera.prototype, {
+	}
 
 
-	update: function ( camera ) {
+	update( camera ) {
 
 
 		const cache = this._cache;
 		const cache = this._cache;
 
 
@@ -40423,7 +40431,7 @@ Object.assign( StereoCamera.prototype, {
 
 
 	}
 	}
 
 
-} );
+}
 
 
 class Clock {
 class Clock {
 
 

Некоторые файлы не были показаны из-за большого количества измененных файлов