Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jan 19, 2022
1 parent 4c835e7 commit d3ff948
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 30 deletions.
79 changes: 55 additions & 24 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -118,7 +118,6 @@
const RedIntegerFormat = 1029;
const RGFormat = 1030;
const RGIntegerFormat = 1031;
const RGBIntegerFormat = 1032;
const RGBAIntegerFormat = 1033;
const RGB_S3TC_DXT1_Format = 33776;
const RGBA_S3TC_DXT1_Format = 33777;
Expand Down Expand Up @@ -17511,11 +17510,11 @@
const encoding = texture.encoding;
const format = texture.format;
const type = texture.type;
if (texture.isCompressedTexture === true || texture.format === _SRGBAFormat) return image;
if (texture.isCompressedTexture === true || texture.isVideoTexture === true || texture.format === _SRGBAFormat) return image;

if (encoding !== LinearEncoding) {
// sRGB
if (encoding === sRGBEncoding && texture.isVideoTexture !== true) {
if (encoding === sRGBEncoding) {
if (isWebGL2 === false) {
// in WebGL 1, try to use EXT_sRGB extension and unsized formats
if (extensions.has('EXT_sRGB') === true && format === RGBAFormat) {
Expand Down Expand Up @@ -17637,7 +17636,6 @@
if (p === RedIntegerFormat) return gl.RED_INTEGER;
if (p === RGFormat) return gl.RG;
if (p === RGIntegerFormat) return gl.RG_INTEGER;
if (p === RGBIntegerFormat) return gl.RGB_INTEGER;
if (p === RGBAIntegerFormat) return gl.RGBA_INTEGER; // S3TC

if (p === RGB_S3TC_DXT1_Format || p === RGBA_S3TC_DXT1_Format || p === RGBA_S3TC_DXT3_Format || p === RGBA_S3TC_DXT5_Format) {
Expand Down Expand Up @@ -19432,7 +19430,9 @@
_isContextLost = true;
}

function onContextRestore() {
function
/* event */
onContextRestore() {
console.log('THREE.WebGLRenderer: Context Restored.');
_isContextLost = false;
const infoAutoReset = info.autoReset;
Expand Down Expand Up @@ -24542,7 +24542,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

Expand Down Expand Up @@ -35114,10 +35116,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.');
}
};
Expand Down Expand Up @@ -35205,7 +35211,9 @@
return vector.applyMatrix3(this);
};

Matrix3.prototype.multiplyVector3Array = function () {
Matrix3.prototype.multiplyVector3Array = function
/* a */
() {
console.error('THREE.Matrix3: .multiplyVector3Array() has been removed.');
};

Expand All @@ -35214,7 +35222,9 @@
return attribute.applyMatrix3(this);
};

Matrix3.prototype.applyToVector3Array = function () {
Matrix3.prototype.applyToVector3Array = function
/* array, offset, length */
() {
console.error('THREE.Matrix3: .applyToVector3Array() has been removed.');
};

Expand Down Expand Up @@ -35258,7 +35268,9 @@
return vector.applyMatrix4(this);
};

Matrix4.prototype.multiplyVector3Array = function () {
Matrix4.prototype.multiplyVector3Array = function
/* a */
() {
console.error('THREE.Matrix4: .multiplyVector3Array() has been removed.');
};

Expand Down Expand Up @@ -35297,7 +35309,9 @@
return attribute.applyMatrix4(this);
};

Matrix4.prototype.applyToVector3Array = function () {
Matrix4.prototype.applyToVector3Array = function
/* array, offset, length */
() {
console.error('THREE.Matrix4: .applyToVector3Array() has been removed.');
};

Expand Down Expand Up @@ -35630,7 +35644,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);
}
Expand All @@ -35643,9 +35659,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');
}; //

Expand Down Expand Up @@ -35720,7 +35740,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');
}; //

Expand Down Expand Up @@ -35954,7 +35976,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.');
}
},
Expand Down Expand Up @@ -36014,7 +36038,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.');
}
},
Expand Down Expand Up @@ -36209,13 +36235,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');
}
}; //
Expand Down Expand Up @@ -36575,7 +36607,6 @@
exports.RGBA_S3TC_DXT1_Format = RGBA_S3TC_DXT1_Format;
exports.RGBA_S3TC_DXT3_Format = RGBA_S3TC_DXT3_Format;
exports.RGBA_S3TC_DXT5_Format = RGBA_S3TC_DXT5_Format;
exports.RGBIntegerFormat = RGBIntegerFormat;
exports.RGB_ETC1_Format = RGB_ETC1_Format;
exports.RGB_ETC2_Format = RGB_ETC2_Format;
exports.RGB_PVRTC_2BPPV1_Format = RGB_PVRTC_2BPPV1_Format;
Expand Down Expand Up @@ -36699,4 +36730,4 @@

Object.defineProperty(exports, '__esModule', { value: true });

})));
}));
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit d3ff948

Please sign in to comment.