Mr.doob пре 4 година
родитељ
комит
dc2b340839
3 измењених фајлова са 295 додато и 250 уклоњено
  1. 177 122
      build/three.js
  2. 0 0
      build/three.min.js
  3. 118 128
      build/three.module.js

+ 177 - 122
build/three.js

@@ -9696,7 +9696,7 @@
 			for (var p in src[u]) {
 				var property = src[u][p];
 
-				if (property && (property.isColor || property.isMatrix3 || property.isMatrix4 || property.isVector2 || property.isVector3 || property.isVector4 || property.isTexture)) {
+				if (property && (property.isColor || property.isMatrix3 || property.isMatrix4 || property.isVector2 || property.isVector3 || property.isVector4 || property.isTexture || property.isQuaternion)) {
 					dst[u][p] = property.clone();
 				} else if (Array.isArray(property)) {
 					dst[u][p] = property.slice();
@@ -17106,15 +17106,22 @@
 		isArrayCamera: true
 	});
 
-	function Group() {
-		Object3D.call(this);
-		this.type = 'Group';
-	}
+	var Group = /*#__PURE__*/function (_Object3D) {
+		_inheritsLoose(Group, _Object3D);
 
-	Group.prototype = Object.assign(Object.create(Object3D.prototype), {
-		constructor: Group,
-		isGroup: true
-	});
+		function Group() {
+			var _this;
+
+			_this = _Object3D.call(this) || this;
+			_this.type = 'Group';
+			Object.defineProperty(_assertThisInitialized(_this), 'isGroup', {
+				value: true
+			});
+			return _this;
+		}
+
+		return Group;
+	}(Object3D);
 
 	function WebXRController() {
 		this._targetRay = null;
@@ -19927,55 +19934,63 @@
 
 	var _geometry;
 
-	var _intersectPoint = new Vector3();
+	var _intersectPoint = /*@__PURE__*/new Vector3();
 
-	var _worldScale = new Vector3();
+	var _worldScale = /*@__PURE__*/new Vector3();
 
-	var _mvPosition = new Vector3();
+	var _mvPosition = /*@__PURE__*/new Vector3();
 
-	var _alignedPosition = new Vector2();
+	var _alignedPosition = /*@__PURE__*/new Vector2();
 
-	var _rotatedPosition = new Vector2();
+	var _rotatedPosition = /*@__PURE__*/new Vector2();
 
-	var _viewWorldMatrix = new Matrix4();
+	var _viewWorldMatrix = /*@__PURE__*/new Matrix4();
 
-	var _vA$1 = new Vector3();
+	var _vA$1 = /*@__PURE__*/new Vector3();
 
-	var _vB$1 = new Vector3();
+	var _vB$1 = /*@__PURE__*/new Vector3();
 
-	var _vC$1 = new Vector3();
+	var _vC$1 = /*@__PURE__*/new Vector3();
 
-	var _uvA$1 = new Vector2();
+	var _uvA$1 = /*@__PURE__*/new Vector2();
 
-	var _uvB$1 = new Vector2();
+	var _uvB$1 = /*@__PURE__*/new Vector2();
 
-	var _uvC$1 = new Vector2();
+	var _uvC$1 = /*@__PURE__*/new Vector2();
 
-	function Sprite(material) {
-		Object3D.call(this);
-		this.type = 'Sprite';
+	var Sprite = /*#__PURE__*/function (_Object3D) {
+		_inheritsLoose(Sprite, _Object3D);
+
+		function Sprite(material) {
+			var _this;
+
+			_this = _Object3D.call(this) || this;
+			_this.type = 'Sprite';
+
+			if (_geometry === undefined) {
+				_geometry = new BufferGeometry();
+				var float32Array = new Float32Array([-0.5, -0.5, 0, 0, 0, 0.5, -0.5, 0, 1, 0, 0.5, 0.5, 0, 1, 1, -0.5, 0.5, 0, 0, 1]);
+				var interleavedBuffer = new InterleavedBuffer(float32Array, 5);
 
-		if (_geometry === undefined) {
-			_geometry = new BufferGeometry();
-			var float32Array = new Float32Array([-0.5, -0.5, 0, 0, 0, 0.5, -0.5, 0, 1, 0, 0.5, 0.5, 0, 1, 1, -0.5, 0.5, 0, 0, 1]);
-			var interleavedBuffer = new InterleavedBuffer(float32Array, 5);
+				_geometry.setIndex([0, 1, 2, 0, 2, 3]);
 
-			_geometry.setIndex([0, 1, 2, 0, 2, 3]);
+				_geometry.setAttribute('position', new InterleavedBufferAttribute(interleavedBuffer, 3, 0, false));
 
-			_geometry.setAttribute('position', new InterleavedBufferAttribute(interleavedBuffer, 3, 0, false));
+				_geometry.setAttribute('uv', new InterleavedBufferAttribute(interleavedBuffer, 2, 3, false));
+			}
 
-			_geometry.setAttribute('uv', new InterleavedBufferAttribute(interleavedBuffer, 2, 3, false));
+			_this.geometry = _geometry;
+			_this.material = material !== undefined ? material : new SpriteMaterial();
+			_this.center = new Vector2(0.5, 0.5);
+			Object.defineProperty(_assertThisInitialized(_this), 'isSprite', {
+				value: true
+			});
+			return _this;
 		}
 
-		this.geometry = _geometry;
-		this.material = material !== undefined ? material : new SpriteMaterial();
-		this.center = new Vector2(0.5, 0.5);
-	}
+		var _proto = Sprite.prototype;
 
-	Sprite.prototype = Object.assign(Object.create(Object3D.prototype), {
-		constructor: Sprite,
-		isSprite: true,
-		raycast: function raycast(raycaster, intersects) {
+		_proto.raycast = function raycast(raycaster, intersects) {
 			if (raycaster.camera === null) {
 				console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.');
 			}
@@ -20036,14 +20051,17 @@
 				face: null,
 				object: this
 			});
-		},
-		copy: function copy(source) {
+		};
+
+		_proto.copy = function copy(source) {
 			Object3D.prototype.copy.call(this, source);
 			if (source.center !== undefined) this.center.copy(source.center);
 			this.material = source.material;
 			return this;
-		}
-	});
+		};
+
+		return Sprite;
+	}(Object3D);
 
 	function transformVertex(vertexPosition, mvPosition, center, scale, sin, cos) {
 		// compute position in camera space
@@ -20064,28 +20082,37 @@
 		vertexPosition.applyMatrix4(_viewWorldMatrix);
 	}
 
-	var _v1$4 = new Vector3();
+	var _v1$4 = /*@__PURE__*/new Vector3();
 
-	var _v2$2 = new Vector3();
+	var _v2$2 = /*@__PURE__*/new Vector3();
 
-	function LOD() {
-		Object3D.call(this);
-		this._currentLevel = 0;
-		this.type = 'LOD';
-		Object.defineProperties(this, {
-			levels: {
-				enumerable: true,
-				value: []
-			}
-		});
-		this.autoUpdate = true;
-	}
+	var LOD = /*#__PURE__*/function (_Object3D) {
+		_inheritsLoose(LOD, _Object3D);
+
+		function LOD() {
+			var _this;
+
+			_this = _Object3D.call(this) || this;
+			_this._currentLevel = 0;
+			_this.type = 'LOD';
+			Object.defineProperties(_assertThisInitialized(_this), {
+				levels: {
+					enumerable: true,
+					value: []
+				},
+				isLOD: {
+					value: true
+				}
+			});
+			_this.autoUpdate = true;
+			return _this;
+		}
+
+		var _proto = LOD.prototype;
+
+		_proto.copy = function copy(source) {
+			_Object3D.prototype.copy.call(this, source, false);
 
-	LOD.prototype = Object.assign(Object.create(Object3D.prototype), {
-		constructor: LOD,
-		isLOD: true,
-		copy: function copy(source) {
-			Object3D.prototype.copy.call(this, source, false);
 			var levels = source.levels;
 
 			for (var i = 0, l = levels.length; i < l; i++) {
@@ -20095,8 +20122,9 @@
 
 			this.autoUpdate = source.autoUpdate;
 			return this;
-		},
-		addLevel: function addLevel(object, distance) {
+		};
+
+		_proto.addLevel = function addLevel(object, distance) {
 			if (distance === void 0) {
 				distance = 0;
 			}
@@ -20117,11 +20145,13 @@
 			});
 			this.add(object);
 			return this;
-		},
-		getCurrentLevel: function getCurrentLevel() {
+		};
+
+		_proto.getCurrentLevel = function getCurrentLevel() {
 			return this._currentLevel;
-		},
-		getObjectForDistance: function getObjectForDistance(distance) {
+		};
+
+		_proto.getObjectForDistance = function getObjectForDistance(distance) {
 			var levels = this.levels;
 
 			if (levels.length > 0) {
@@ -20137,8 +20167,9 @@
 			}
 
 			return null;
-		},
-		raycast: function raycast(raycaster, intersects) {
+		};
+
+		_proto.raycast = function raycast(raycaster, intersects) {
 			var levels = this.levels;
 
 			if (levels.length > 0) {
@@ -20147,8 +20178,9 @@
 				var distance = raycaster.ray.origin.distanceTo(_v1$4);
 				this.getObjectForDistance(distance).raycast(raycaster, intersects);
 			}
-		},
-		update: function update(camera) {
+		};
+
+		_proto.update = function update(camera) {
 			var levels = this.levels;
 
 			if (levels.length > 1) {
@@ -20175,9 +20207,11 @@
 					levels[i].object.visible = false;
 				}
 			}
-		},
-		toJSON: function toJSON(meta) {
-			var data = Object3D.prototype.toJSON.call(this, meta);
+		};
+
+		_proto.toJSON = function toJSON(meta) {
+			var data = _Object3D.prototype.toJSON.call(this, meta);
+
 			if (this.autoUpdate === false) data.object.autoUpdate = false;
 			data.object.levels = [];
 			var levels = this.levels;
@@ -20191,8 +20225,10 @@
 			}
 
 			return data;
-		}
-	});
+		};
+
+		return LOD;
+	}(Object3D);
 
 	var _basePosition = new Vector3();
 
@@ -20307,31 +20343,33 @@
 		isBone: true
 	});
 
-	var _offsetMatrix = new Matrix4();
+	var _offsetMatrix = /*@__PURE__*/new Matrix4();
 
-	var _identityMatrix = new Matrix4();
+	var _identityMatrix = /*@__PURE__*/new Matrix4();
 
-	function Skeleton(bones, boneInverses) {
-		if (bones === void 0) {
-			bones = [];
-		}
+	var Skeleton = /*#__PURE__*/function () {
+		function Skeleton(bones, boneInverses) {
+			if (bones === void 0) {
+				bones = [];
+			}
+
+			if (boneInverses === void 0) {
+				boneInverses = [];
+			}
 
-		if (boneInverses === void 0) {
-			boneInverses = [];
+			this.uuid = MathUtils.generateUUID();
+			this.bones = bones.slice(0);
+			this.boneInverses = boneInverses;
+			this.boneMatrices = null;
+			this.boneTexture = null;
+			this.boneTextureSize = 0;
+			this.frame = -1;
+			this.init();
 		}
 
-		this.uuid = MathUtils.generateUUID();
-		this.bones = bones.slice(0);
-		this.boneInverses = boneInverses;
-		this.boneMatrices = null;
-		this.boneTexture = null;
-		this.boneTextureSize = 0;
-		this.frame = -1;
-		this.init();
-	}
+		var _proto = Skeleton.prototype;
 
-	Object.assign(Skeleton.prototype, {
-		init: function init() {
+		_proto.init = function init() {
 			var bones = this.bones;
 			var boneInverses = this.boneInverses;
 			this.boneMatrices = new Float32Array(bones.length * 16); // calculate inverse bone matrices if necessary
@@ -20349,8 +20387,9 @@
 					}
 				}
 			}
-		},
-		calculateInverses: function calculateInverses() {
+		};
+
+		_proto.calculateInverses = function calculateInverses() {
 			this.boneInverses.length = 0;
 
 			for (var i = 0, il = this.bones.length; i < il; i++) {
@@ -20362,8 +20401,9 @@
 
 				this.boneInverses.push(inverse);
 			}
-		},
-		pose: function pose() {
+		};
+
+		_proto.pose = function pose() {
 			// recover the bind-time world matrices
 			for (var i = 0, il = this.bones.length; i < il; i++) {
 				var bone = this.bones[i];
@@ -20389,8 +20429,9 @@
 					_bone.matrix.decompose(_bone.position, _bone.quaternion, _bone.scale);
 				}
 			}
-		},
-		update: function update() {
+		};
+
+		_proto.update = function update() {
 			var bones = this.bones;
 			var boneInverses = this.boneInverses;
 			var boneMatrices = this.boneMatrices;
@@ -20408,11 +20449,13 @@
 			if (boneTexture !== null) {
 				boneTexture.needsUpdate = true;
 			}
-		},
-		clone: function clone() {
+		};
+
+		_proto.clone = function clone() {
 			return new Skeleton(this.bones, this.boneInverses);
-		},
-		getBoneByName: function getBoneByName(name) {
+		};
+
+		_proto.getBoneByName = function getBoneByName(name) {
 			for (var i = 0, il = this.bones.length; i < il; i++) {
 				var bone = this.bones[i];
 
@@ -20422,14 +20465,16 @@
 			}
 
 			return undefined;
-		},
-		dispose: function dispose() {
+		};
+
+		_proto.dispose = function dispose() {
 			if (this.boneTexture !== null) {
 				this.boneTexture.dispose();
 				this.boneTexture = null;
 			}
-		},
-		fromJSON: function fromJSON(json, bones) {
+		};
+
+		_proto.fromJSON = function fromJSON(json, bones) {
 			this.uuid = json.uuid;
 
 			for (var i = 0, l = json.bones.length; i < l; i++) {
@@ -20447,8 +20492,9 @@
 
 			this.init();
 			return this;
-		},
-		toJSON: function toJSON() {
+		};
+
+		_proto.toJSON = function toJSON() {
 			var data = {
 				metadata: {
 					version: 4.5,
@@ -20470,8 +20516,10 @@
 			}
 
 			return data;
-		}
-	});
+		};
+
+		return Skeleton;
+	}();
 
 	var _instanceLocalMatrix = new Matrix4();
 
@@ -20811,15 +20859,22 @@
 		}
 	});
 
-	function LineLoop(geometry, material) {
-		Line.call(this, geometry, material);
-		this.type = 'LineLoop';
-	}
+	var LineLoop = /*#__PURE__*/function (_Line) {
+		_inheritsLoose(LineLoop, _Line);
 
-	LineLoop.prototype = Object.assign(Object.create(Line.prototype), {
-		constructor: LineLoop,
-		isLineLoop: true
-	});
+		function LineLoop(geometry, material) {
+			var _this;
+
+			_this = _Line.call(this, geometry, material) || this;
+			_this.type = 'LineLoop';
+			Object.defineProperty(_assertThisInitialized(_this), 'isLineLoop', {
+				value: true
+			});
+			return _this;
+		}
+
+		return LineLoop;
+	}(Line);
 
 	/**
 	 * parameters = {

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
build/three.min.js


+ 118 - 128
build/three.module.js

@@ -11260,7 +11260,7 @@ function cloneUniforms( src ) {
 			if ( property && ( property.isColor ||
 				property.isMatrix3 || property.isMatrix4 ||
 				property.isVector2 || property.isVector3 || property.isVector4 ||
-				property.isTexture ) ) {
+				property.isTexture || property.isQuaternion ) ) {
 
 				dst[ u ][ p ] = property.clone();
 
@@ -21533,21 +21533,17 @@ ArrayCamera.prototype = Object.assign( Object.create( PerspectiveCamera.prototyp
 
 } );
 
-function Group() {
+class Group extends Object3D {
 
-	Object3D.call( this );
-
-	this.type = 'Group';
-
-}
-
-Group.prototype = Object.assign( Object.create( Object3D.prototype ), {
+	constructor() {
 
-	constructor: Group,
+		super();
+		this.type = 'Group';
+		Object.defineProperty( this, 'isGroup', { value: true } );
 
-	isGroup: true
+	}
 
-} );
+}
 
 function WebXRController() {
 
@@ -25533,61 +25529,58 @@ SpriteMaterial.prototype.copy = function ( source ) {
 
 let _geometry;
 
-const _intersectPoint = new Vector3();
-const _worldScale = new Vector3();
-const _mvPosition = new Vector3();
+const _intersectPoint = /*@__PURE__*/ new Vector3();
+const _worldScale = /*@__PURE__*/ new Vector3();
+const _mvPosition = /*@__PURE__*/ new Vector3();
 
-const _alignedPosition = new Vector2();
-const _rotatedPosition = new Vector2();
-const _viewWorldMatrix = new Matrix4();
+const _alignedPosition = /*@__PURE__*/ new Vector2();
+const _rotatedPosition = /*@__PURE__*/ new Vector2();
+const _viewWorldMatrix = /*@__PURE__*/ new Matrix4();
 
-const _vA$1 = new Vector3();
-const _vB$1 = new Vector3();
-const _vC$1 = new Vector3();
+const _vA$1 = /*@__PURE__*/ new Vector3();
+const _vB$1 = /*@__PURE__*/ new Vector3();
+const _vC$1 = /*@__PURE__*/ new Vector3();
 
-const _uvA$1 = new Vector2();
-const _uvB$1 = new Vector2();
-const _uvC$1 = new Vector2();
-
-function Sprite( material ) {
-
-	Object3D.call( this );
+const _uvA$1 = /*@__PURE__*/ new Vector2();
+const _uvB$1 = /*@__PURE__*/ new Vector2();
+const _uvC$1 = /*@__PURE__*/ new Vector2();
 
-	this.type = 'Sprite';
+class Sprite extends Object3D {
 
-	if ( _geometry === undefined ) {
+	constructor( material ) {
 
-		_geometry = new BufferGeometry();
+		super();
+		this.type = 'Sprite';
 
-		const float32Array = new Float32Array( [
-			- 0.5, - 0.5, 0, 0, 0,
-			0.5, - 0.5, 0, 1, 0,
-			0.5, 0.5, 0, 1, 1,
-			- 0.5, 0.5, 0, 0, 1
-		] );
+		if ( _geometry === undefined ) {
 
-		const interleavedBuffer = new InterleavedBuffer( float32Array, 5 );
+			_geometry = new BufferGeometry();
 
-		_geometry.setIndex( [ 0, 1, 2,	0, 2, 3 ] );
-		_geometry.setAttribute( 'position', new InterleavedBufferAttribute( interleavedBuffer, 3, 0, false ) );
-		_geometry.setAttribute( 'uv', new InterleavedBufferAttribute( interleavedBuffer, 2, 3, false ) );
+			const float32Array = new Float32Array( [
+				- 0.5, - 0.5, 0, 0, 0,
+				0.5, - 0.5, 0, 1, 0,
+				0.5, 0.5, 0, 1, 1,
+				- 0.5, 0.5, 0, 0, 1
+			] );
 
-	}
+			const interleavedBuffer = new InterleavedBuffer( float32Array, 5 );
 
-	this.geometry = _geometry;
-	this.material = ( material !== undefined ) ? material : new SpriteMaterial();
+			_geometry.setIndex( [ 0, 1, 2,	0, 2, 3 ] );
+			_geometry.setAttribute( 'position', new InterleavedBufferAttribute( interleavedBuffer, 3, 0, false ) );
+			_geometry.setAttribute( 'uv', new InterleavedBufferAttribute( interleavedBuffer, 2, 3, false ) );
 
-	this.center = new Vector2( 0.5, 0.5 );
+		}
 
-}
+		this.geometry = _geometry;
+		this.material = ( material !== undefined ) ? material : new SpriteMaterial();
 
-Sprite.prototype = Object.assign( Object.create( Object3D.prototype ), {
+		this.center = new Vector2( 0.5, 0.5 );
 
-	constructor: Sprite,
+		Object.defineProperty( this, 'isSprite', { value: true } );
 
-	isSprite: true,
+	}
 
-	raycast: function ( raycaster, intersects ) {
+	raycast( raycaster, intersects ) {
 
 		if ( raycaster.camera === null ) {
 
@@ -25660,9 +25653,9 @@ Sprite.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		} );
 
-	},
+	}
 
-	copy: function ( source ) {
+	copy( source ) {
 
 		Object3D.prototype.copy.call( this, source );
 
@@ -25674,7 +25667,7 @@ Sprite.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 	}
 
-} );
+}
 
 function transformVertex( vertexPosition, mvPosition, center, scale, sin, cos ) {
 
@@ -25703,37 +25696,36 @@ function transformVertex( vertexPosition, mvPosition, center, scale, sin, cos )
 
 }
 
-const _v1$4 = new Vector3();
-const _v2$2 = new Vector3();
+const _v1$4 = /*@__PURE__*/ new Vector3();
+const _v2$2 = /*@__PURE__*/ new Vector3();
 
-function LOD() {
+class LOD extends Object3D {
 
-	Object3D.call( this );
-
-	this._currentLevel = 0;
-
-	this.type = 'LOD';
+	constructor() {
 
-	Object.defineProperties( this, {
-		levels: {
-			enumerable: true,
-			value: []
-		}
-	} );
+		super();
 
-	this.autoUpdate = true;
+		this._currentLevel = 0;
 
-}
+		this.type = 'LOD';
 
-LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
+		Object.defineProperties( this, {
+			levels: {
+				enumerable: true,
+				value: []
+			},
+			isLOD: {
+				value: true,
+			}
+		} );
 
-	constructor: LOD,
+		this.autoUpdate = true;
 
-	isLOD: true,
+	}
 
-	copy: function ( source ) {
+	copy( source ) {
 
-		Object3D.prototype.copy.call( this, source, false );
+		super.copy( source, false );
 
 		const levels = source.levels;
 
@@ -25749,9 +25741,9 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		return this;
 
-	},
+	}
 
-	addLevel: function ( object, distance = 0 ) {
+	addLevel( object, distance = 0 ) {
 
 		distance = Math.abs( distance );
 
@@ -25775,15 +25767,15 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		return this;
 
-	},
+	}
 
-	getCurrentLevel: function () {
+	getCurrentLevel() {
 
 		return this._currentLevel;
 
-	},
+	}
 
-	getObjectForDistance: function ( distance ) {
+	getObjectForDistance( distance ) {
 
 		const levels = this.levels;
 
@@ -25807,9 +25799,9 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		return null;
 
-	},
+	}
 
-	raycast: function ( raycaster, intersects ) {
+	raycast( raycaster, intersects ) {
 
 		const levels = this.levels;
 
@@ -25823,9 +25815,9 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		}
 
-	},
+	}
 
-	update: function ( camera ) {
+	update( camera ) {
 
 		const levels = this.levels;
 
@@ -25865,11 +25857,11 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		}
 
-	},
+	}
 
-	toJSON: function ( meta ) {
+	toJSON( meta ) {
 
-		const data = Object3D.prototype.toJSON.call( this, meta );
+		const data = super.toJSON( meta );
 
 		if ( this.autoUpdate === false ) data.object.autoUpdate = false;
 
@@ -25892,7 +25884,7 @@ LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 	}
 
-} );
+}
 
 const _basePosition = new Vector3();
 
@@ -26060,29 +26052,29 @@ Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 } );
 
-const _offsetMatrix = new Matrix4();
-const _identityMatrix = new Matrix4();
+const _offsetMatrix = /*@__PURE__*/ new Matrix4();
+const _identityMatrix = /*@__PURE__*/ new Matrix4();
 
-function Skeleton( bones = [], boneInverses = [] ) {
+class Skeleton {
 
-	this.uuid = MathUtils.generateUUID();
+	constructor( bones = [], boneInverses = [] ) {
 
-	this.bones = bones.slice( 0 );
-	this.boneInverses = boneInverses;
-	this.boneMatrices = null;
+		this.uuid = MathUtils.generateUUID();
 
-	this.boneTexture = null;
-	this.boneTextureSize = 0;
+		this.bones = bones.slice( 0 );
+		this.boneInverses = boneInverses;
+		this.boneMatrices = null;
 
-	this.frame = - 1;
+		this.boneTexture = null;
+		this.boneTextureSize = 0;
 
-	this.init();
+		this.frame = - 1;
 
-}
+		this.init();
 
-Object.assign( Skeleton.prototype, {
+	}
 
-	init: function () {
+	init() {
 
 		const bones = this.bones;
 		const boneInverses = this.boneInverses;
@@ -26115,9 +26107,9 @@ Object.assign( Skeleton.prototype, {
 
 		}
 
-	},
+	}
 
-	calculateInverses: function () {
+	calculateInverses() {
 
 		this.boneInverses.length = 0;
 
@@ -26135,9 +26127,9 @@ Object.assign( Skeleton.prototype, {
 
 		}
 
-	},
+	}
 
-	pose: function () {
+	pose() {
 
 		// recover the bind-time world matrices
 
@@ -26178,9 +26170,9 @@ Object.assign( Skeleton.prototype, {
 
 		}
 
-	},
+	}
 
-	update: function () {
+	update() {
 
 		const bones = this.bones;
 		const boneInverses = this.boneInverses;
@@ -26206,15 +26198,15 @@ Object.assign( Skeleton.prototype, {
 
 		}
 
-	},
+	}
 
-	clone: function () {
+	clone() {
 
 		return new Skeleton( this.bones, this.boneInverses );
 
-	},
+	}
 
-	getBoneByName: function ( name ) {
+	getBoneByName( name ) {
 
 		for ( let i = 0, il = this.bones.length; i < il; i ++ ) {
 
@@ -26230,9 +26222,9 @@ Object.assign( Skeleton.prototype, {
 
 		return undefined;
 
-	},
+	}
 
-	dispose: function ( ) {
+	dispose( ) {
 
 		if ( this.boneTexture !== null ) {
 
@@ -26242,9 +26234,9 @@ Object.assign( Skeleton.prototype, {
 
 		}
 
-	},
+	}
 
-	fromJSON: function ( json, bones ) {
+	fromJSON( json, bones ) {
 
 		this.uuid = json.uuid;
 
@@ -26269,9 +26261,9 @@ Object.assign( Skeleton.prototype, {
 
 		return this;
 
-	},
+	}
 
-	toJSON: function () {
+	toJSON() {
 
 		const data = {
 			metadata: {
@@ -26302,7 +26294,7 @@ Object.assign( Skeleton.prototype, {
 
 	}
 
-} );
+}
 
 const _instanceLocalMatrix = new Matrix4();
 const _instanceWorldMatrix = new Matrix4();
@@ -26776,21 +26768,19 @@ LineSegments.prototype = Object.assign( Object.create( Line.prototype ), {
 
 } );
 
-function LineLoop( geometry, material ) {
-
-	Line.call( this, geometry, material );
+class LineLoop extends Line {
 
-	this.type = 'LineLoop';
+	constructor( geometry, material ) {
 
-}
+		super( geometry, material );
+		this.type = 'LineLoop';
+		Object.defineProperty( this, 'isLineLoop', { value: true } );
 
-LineLoop.prototype = Object.assign( Object.create( Line.prototype ), {
+	}
 
-	constructor: LineLoop,
 
-	isLineLoop: true,
 
-} );
+}
 
 /**
  * parameters = {

Неке датотеке нису приказане због велике количине промена