提交 eb6ab39c 编写于 作者: M Mr.doob

Updated builds.

上级 0b9f01be
......@@ -9,7 +9,7 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
}(this, (function (exports) { 'use strict';
const REVISION = '127';
const REVISION = '128dev';
const MOUSE = {
LEFT: 0,
MIDDLE: 1,
......@@ -19192,15 +19192,15 @@
}
});
function Bone() {
Object3D.call(this);
this.type = 'Bone';
class Bone extends Object3D {
constructor() {
super();
this.type = 'Bone';
}
}
Bone.prototype = Object.assign(Object.create(Object3D.prototype), {
constructor: Bone,
isBone: true
});
Bone.prototype.isBone = true;
const _offsetMatrix = /*@__PURE__*/new Matrix4();
......@@ -26721,6 +26721,9 @@
this.intensity = intensity;
}
dispose() {// Empty here in base class; some subclasses override.
}
copy(source) {
super.copy(source);
this.color.copy(source.color);
......@@ -26826,6 +26829,16 @@
return this._frameExtents;
}
dispose() {
if (this.map) {
this.map.dispose();
}
if (this.mapPass) {
this.mapPass.dispose();
}
}
copy(source) {
this.camera = source.camera.clone();
this.bias = source.bias;
......@@ -26910,6 +26923,10 @@
this.intensity = power / Math.PI;
}
dispose() {
this.shadow.dispose();
}
copy(source) {
super.copy(source);
this.distance = source.distance;
......@@ -27013,6 +27030,10 @@
this.intensity = power / (4 * Math.PI);
}
dispose() {
this.shadow.dispose();
}
copy(source) {
super.copy(source);
this.distance = source.distance;
......@@ -27143,6 +27164,10 @@
this.shadow = new DirectionalLightShadow();
}
dispose() {
this.shadow.dispose();
}
copy(source) {
super.copy(source);
this.target = source.target.clone();
......@@ -32674,6 +32699,11 @@
geometry.getAttribute('position').needsUpdate = true;
}
dispose() {
this.geometry.dispose();
this.material.dispose();
}
}
function setPoint(point, pointMap, geometry, camera, x, y, z) {
......@@ -32936,6 +32966,11 @@
this.type = 'AxesHelper';
}
dispose() {
this.geometry.dispose();
this.material.dispose();
}
}
const _floatView = new Float32Array(1);
此差异已折叠。
......@@ -3,7 +3,7 @@
* Copyright 2010-2021 Three.js Authors
* SPDX-License-Identifier: MIT
*/
const REVISION = '127';
const REVISION = '128dev';
const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
const CullFaceNone = 0;
......@@ -26440,21 +26440,19 @@ SkinnedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
} );
function Bone() {
class Bone extends Object3D {
Object3D.call( this );
this.type = 'Bone';
constructor() {
}
super();
Bone.prototype = Object.assign( Object.create( Object3D.prototype ), {
this.type = 'Bone';
constructor: Bone,
}
isBone: true
}
} );
Bone.prototype.isBone = true;
const _offsetMatrix = /*@__PURE__*/ new Matrix4();
const _identityMatrix = /*@__PURE__*/ new Matrix4();
......@@ -37290,6 +37288,12 @@ class Light extends Object3D {
}
dispose() {
// Empty here in base class; some subclasses override.
}
copy( source ) {
super.copy( source );
......@@ -37441,6 +37445,22 @@ class LightShadow {
}
dispose() {
if ( this.map ) {
this.map.dispose();
}
if ( this.mapPass ) {
this.mapPass.dispose();
}
}
copy( source ) {
this.camera = source.camera.clone();
......@@ -37561,6 +37581,12 @@ class SpotLight extends Light {
}
dispose() {
this.shadow.dispose();
}
copy( source ) {
super.copy( source );
......@@ -37701,6 +37727,12 @@ class PointLight extends Light {
}
dispose() {
this.shadow.dispose();
}
copy( source ) {
super.copy( source );
......@@ -37880,6 +37912,12 @@ class DirectionalLight extends Light {
}
dispose() {
this.shadow.dispose();
}
copy( source ) {
super.copy( source );
......@@ -45861,6 +45899,13 @@ class CameraHelper extends LineSegments {
}
dispose() {
this.geometry.dispose();
this.material.dispose();
}
}
......@@ -46194,6 +46239,13 @@ class AxesHelper extends LineSegments {
}
dispose() {
this.geometry.dispose();
this.material.dispose();
}
}
const _floatView = new Float32Array( 1 );
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册