|
@@ -7,7 +7,7 @@
|
|
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
|
|
|
-}(this, (function (exports) { 'use strict';
|
|
|
+})(this, (function (exports) { 'use strict';
|
|
|
|
|
|
const REVISION = '137dev';
|
|
|
const MOUSE = {
|
|
@@ -16053,7 +16053,7 @@
|
|
|
break;
|
|
|
|
|
|
case SubtractiveBlending:
|
|
|
- gl.blendFuncSeparate(gl.ZERO, gl.ZERO, gl.ONE_MINUS_SRC_COLOR, gl.ONE_MINUS_SRC_ALPHA);
|
|
|
+ gl.blendFuncSeparate(gl.ZERO, gl.ONE_MINUS_SRC_COLOR, gl.ZERO, gl.ONE);
|
|
|
break;
|
|
|
|
|
|
case MultiplyBlending:
|
|
@@ -16075,7 +16075,7 @@
|
|
|
break;
|
|
|
|
|
|
case SubtractiveBlending:
|
|
|
- gl.blendFunc(gl.ZERO, gl.ONE_MINUS_SRC_COLOR);
|
|
|
+ gl.blendFuncSeparate(gl.ZERO, gl.ONE_MINUS_SRC_COLOR, gl.ZERO, gl.ONE);
|
|
|
break;
|
|
|
|
|
|
case MultiplyBlending:
|
|
@@ -19438,7 +19438,9 @@
|
|
|
_isContextLost = true;
|
|
|
}
|
|
|
|
|
|
- function onContextRestore() {
|
|
|
+ function
|
|
|
+ /* event */
|
|
|
+ onContextRestore() {
|
|
|
console.log('THREE.WebGLRenderer: Context Restored.');
|
|
|
_isContextLost = false;
|
|
|
const infoAutoReset = info.autoReset;
|
|
@@ -24548,7 +24550,9 @@
|
|
|
|
|
|
|
|
|
function isValidDiagonal(a, b) {
|
|
|
- return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && (locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && (area(a.prev, a, b.prev) || area(a, b.prev, b)) || // does not create opposite-facing sectors
|
|
|
+ return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && ( // dones't intersect other edges
|
|
|
+ locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && ( // locally visible
|
|
|
+ area(a.prev, a, b.prev) || area(a, b.prev, b)) || // does not create opposite-facing sectors
|
|
|
equals(a, b) && area(a.prev, a, a.next) > 0 && area(b.prev, b, b.next) > 0); // special zero-length case
|
|
|
} // signed area of a triangle
|
|
|
|
|
@@ -35120,10 +35124,14 @@
|
|
|
};
|
|
|
|
|
|
Loader.Handlers = {
|
|
|
- add: function () {
|
|
|
+ add: function
|
|
|
+ /* regex, loader */
|
|
|
+ () {
|
|
|
console.error('THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.');
|
|
|
},
|
|
|
- get: function () {
|
|
|
+ get: function
|
|
|
+ /* file */
|
|
|
+ () {
|
|
|
console.error('THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.');
|
|
|
}
|
|
|
};
|
|
@@ -35211,7 +35219,9 @@
|
|
|
return vector.applyMatrix3(this);
|
|
|
};
|
|
|
|
|
|
- Matrix3.prototype.multiplyVector3Array = function () {
|
|
|
+ Matrix3.prototype.multiplyVector3Array = function
|
|
|
+ /* a */
|
|
|
+ () {
|
|
|
console.error('THREE.Matrix3: .multiplyVector3Array() has been removed.');
|
|
|
};
|
|
|
|
|
@@ -35220,7 +35230,9 @@
|
|
|
return attribute.applyMatrix3(this);
|
|
|
};
|
|
|
|
|
|
- Matrix3.prototype.applyToVector3Array = function () {
|
|
|
+ Matrix3.prototype.applyToVector3Array = function
|
|
|
+ /* array, offset, length */
|
|
|
+ () {
|
|
|
console.error('THREE.Matrix3: .applyToVector3Array() has been removed.');
|
|
|
};
|
|
|
|
|
@@ -35264,7 +35276,9 @@
|
|
|
return vector.applyMatrix4(this);
|
|
|
};
|
|
|
|
|
|
- Matrix4.prototype.multiplyVector3Array = function () {
|
|
|
+ Matrix4.prototype.multiplyVector3Array = function
|
|
|
+ /* a */
|
|
|
+ () {
|
|
|
console.error('THREE.Matrix4: .multiplyVector3Array() has been removed.');
|
|
|
};
|
|
|
|
|
@@ -35303,7 +35317,9 @@
|
|
|
return attribute.applyMatrix4(this);
|
|
|
};
|
|
|
|
|
|
- Matrix4.prototype.applyToVector3Array = function () {
|
|
|
+ Matrix4.prototype.applyToVector3Array = function
|
|
|
+ /* array, offset, length */
|
|
|
+ () {
|
|
|
console.error('THREE.Matrix4: .applyToVector3Array() has been removed.');
|
|
|
};
|
|
|
|
|
@@ -35636,7 +35652,9 @@
|
|
|
console.warn('THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.');
|
|
|
return this.usage === DynamicDrawUsage;
|
|
|
},
|
|
|
- set: function () {
|
|
|
+ set: function
|
|
|
+ /* value */
|
|
|
+ () {
|
|
|
console.warn('THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.');
|
|
|
this.setUsage(DynamicDrawUsage);
|
|
|
}
|
|
@@ -35649,9 +35667,13 @@
|
|
|
return this;
|
|
|
};
|
|
|
|
|
|
- BufferAttribute.prototype.copyIndicesArray = function () {
|
|
|
+ BufferAttribute.prototype.copyIndicesArray = function
|
|
|
+ /* indices */
|
|
|
+ () {
|
|
|
console.error('THREE.BufferAttribute: .copyIndicesArray() has been removed.');
|
|
|
- }, BufferAttribute.prototype.setArray = function () {
|
|
|
+ }, BufferAttribute.prototype.setArray = function
|
|
|
+ /* array */
|
|
|
+ () {
|
|
|
console.error('THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers');
|
|
|
}; //
|
|
|
|
|
@@ -35726,7 +35748,9 @@
|
|
|
return this;
|
|
|
};
|
|
|
|
|
|
- InterleavedBuffer.prototype.setArray = function () {
|
|
|
+ InterleavedBuffer.prototype.setArray = function
|
|
|
+ /* array */
|
|
|
+ () {
|
|
|
console.error('THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers');
|
|
|
}; //
|
|
|
|
|
@@ -35960,7 +35984,9 @@
|
|
|
console.warn('THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.');
|
|
|
return undefined;
|
|
|
},
|
|
|
- set: function () {
|
|
|
+ set: function
|
|
|
+ /* value */
|
|
|
+ () {
|
|
|
console.warn('THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.');
|
|
|
}
|
|
|
},
|
|
@@ -36020,7 +36046,9 @@
|
|
|
console.warn('THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.');
|
|
|
return undefined;
|
|
|
},
|
|
|
- set: function () {
|
|
|
+ set: function
|
|
|
+ /* cullFace */
|
|
|
+ () {
|
|
|
console.warn('THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.');
|
|
|
}
|
|
|
},
|
|
@@ -36215,13 +36243,19 @@
|
|
|
} //
|
|
|
|
|
|
const SceneUtils = {
|
|
|
- createMultiMaterialObject: function () {
|
|
|
+ createMultiMaterialObject: function
|
|
|
+ /* geometry, materials */
|
|
|
+ () {
|
|
|
console.error('THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js');
|
|
|
},
|
|
|
- detach: function () {
|
|
|
+ detach: function
|
|
|
+ /* child, parent, scene */
|
|
|
+ () {
|
|
|
console.error('THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js');
|
|
|
},
|
|
|
- attach: function () {
|
|
|
+ attach: function
|
|
|
+ /* child, scene, parent */
|
|
|
+ () {
|
|
|
console.error('THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js');
|
|
|
}
|
|
|
}; //
|
|
@@ -36704,4 +36738,4 @@
|
|
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
|
|
-})));
|
|
|
+}));
|