Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Aug 21, 2023
1 parent 6ce2492 commit eb8f9bd
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 39 deletions.
38 changes: 26 additions & 12 deletions build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ const RGBA_ASTC_10x10_Format = 37819;
const RGBA_ASTC_12x10_Format = 37820;
const RGBA_ASTC_12x12_Format = 37821;
const RGBA_BPTC_Format = 36492;
const SRGB_ALPHA_BPTC_Format = 36493;
const RGB_BPTC_SIGNED_Format = 36494;
const RGB_BPTC_UNSIGNED_Format = 36495;
const RED_RGTC1_Format = 36283;
const SIGNED_RED_RGTC1_Format = 36284;
const RED_GREEN_RGTC2_Format = 36285;
Expand Down Expand Up @@ -1921,7 +1924,7 @@ function serializeImage( image ) {

}

let textureId = 0;
let _textureId = 0;

class Texture extends EventDispatcher {

Expand All @@ -1931,7 +1934,7 @@ class Texture extends EventDispatcher {

this.isTexture = true;

Object.defineProperty( this, 'id', { value: textureId ++ } );
Object.defineProperty( this, 'id', { value: _textureId ++ } );

this.uuid = generateUUID();

Expand Down Expand Up @@ -8388,7 +8391,7 @@ class Triangle {

}

let materialId = 0;
let _materialId = 0;

class Material extends EventDispatcher {

Expand All @@ -8398,7 +8401,7 @@ class Material extends EventDispatcher {

this.isMaterial = true;

Object.defineProperty( this, 'id', { value: materialId ++ } );
Object.defineProperty( this, 'id', { value: _materialId ++ } );

this.uuid = generateUUID();

Expand Down Expand Up @@ -10367,7 +10370,7 @@ class Float64BufferAttribute extends BufferAttribute {

}

let _id$1 = 0;
let _id$2 = 0;

const _m1 = /*@__PURE__*/ new Matrix4();
const _obj = /*@__PURE__*/ new Object3D();
Expand All @@ -10384,7 +10387,7 @@ class BufferGeometry extends EventDispatcher {

this.isBufferGeometry = true;

Object.defineProperty( this, 'id', { value: _id$1 ++ } );
Object.defineProperty( this, 'id', { value: _id$2 ++ } );

this.uuid = generateUUID();

Expand Down Expand Up @@ -20052,7 +20055,7 @@ function WebGLProgram( renderer, cacheKey, parameters, bindingStates ) {

}

let _id = 0;
let _id$1 = 0;

class WebGLShaderCache {

Expand Down Expand Up @@ -20166,7 +20169,7 @@ class WebGLShaderStage {

constructor( code ) {

this.id = _id ++;
this.id = _id$1 ++;

this.code = code;
this.usedTimes = 0;
Expand Down Expand Up @@ -25828,13 +25831,15 @@ function WebGLUtils( gl, extensions, capabilities ) {

// BPTC

if ( p === RGBA_BPTC_Format ) {
if ( p === RGBA_BPTC_Format || p === SRGB_ALPHA_BPTC_Format || p === RGB_BPTC_SIGNED_Format || p === RGB_BPTC_UNSIGNED_Format ) {

extension = extensions.get( 'EXT_texture_compression_bptc' );

if ( extension !== null ) {

if ( p === RGBA_BPTC_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
if ( p === RGBA_BPTC_Format || p === SRGB_ALPHA_BPTC_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
if ( p === RGB_BPTC_SIGNED_Format ) return extension.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
if ( p === RGB_BPTC_UNSIGNED_Format ) return extension.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;

} else {

Expand Down Expand Up @@ -45914,6 +45919,12 @@ class Audio extends Object3D {

disconnect() {

if ( this._connected === false ) {

return;

}

if ( this.filters.length > 0 ) {

this.source.disconnect( this.filters[ 0 ] );
Expand Down Expand Up @@ -49162,7 +49173,7 @@ class Uniform {

}

let id = 0;
let _id = 0;

class UniformsGroup extends EventDispatcher {

Expand All @@ -49172,7 +49183,7 @@ class UniformsGroup extends EventDispatcher {

this.isUniformsGroup = true;

Object.defineProperty( this, 'id', { value: id ++ } );
Object.defineProperty( this, 'id', { value: _id ++ } );

this.name = '';

Expand Down Expand Up @@ -51732,6 +51743,8 @@ exports.RGBA_PVRTC_4BPPV1_Format = RGBA_PVRTC_4BPPV1_Format;
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.RGB_BPTC_SIGNED_Format = RGB_BPTC_SIGNED_Format;
exports.RGB_BPTC_UNSIGNED_Format = RGB_BPTC_UNSIGNED_Format;
exports.RGB_ETC1_Format = RGB_ETC1_Format;
exports.RGB_ETC2_Format = RGB_ETC2_Format;
exports.RGB_PVRTC_2BPPV1_Format = RGB_PVRTC_2BPPV1_Format;
Expand All @@ -51754,6 +51767,7 @@ exports.RingGeometry = RingGeometry;
exports.SIGNED_RED_GREEN_RGTC2_Format = SIGNED_RED_GREEN_RGTC2_Format;
exports.SIGNED_RED_RGTC1_Format = SIGNED_RED_RGTC1_Format;
exports.SRGBColorSpace = SRGBColorSpace;
exports.SRGB_ALPHA_BPTC_Format = SRGB_ALPHA_BPTC_Format;
exports.Scene = Scene;
exports.ShaderChunk = ShaderChunk;
exports.ShaderLib = ShaderLib;
Expand Down
38 changes: 26 additions & 12 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
const RGBA_ASTC_12x10_Format = 37820;
const RGBA_ASTC_12x12_Format = 37821;
const RGBA_BPTC_Format = 36492;
const SRGB_ALPHA_BPTC_Format = 36493;
const RGB_BPTC_SIGNED_Format = 36494;
const RGB_BPTC_UNSIGNED_Format = 36495;
const RED_RGTC1_Format = 36283;
const SIGNED_RED_RGTC1_Format = 36284;
const RED_GREEN_RGTC2_Format = 36285;
Expand Down Expand Up @@ -1926,7 +1929,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

let textureId = 0;
let _textureId = 0;

class Texture extends EventDispatcher {

Expand All @@ -1936,7 +1939,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

this.isTexture = true;

Object.defineProperty( this, 'id', { value: textureId ++ } );
Object.defineProperty( this, 'id', { value: _textureId ++ } );

this.uuid = generateUUID();

Expand Down Expand Up @@ -8393,7 +8396,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

let materialId = 0;
let _materialId = 0;

class Material extends EventDispatcher {

Expand All @@ -8403,7 +8406,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

this.isMaterial = true;

Object.defineProperty( this, 'id', { value: materialId ++ } );
Object.defineProperty( this, 'id', { value: _materialId ++ } );

this.uuid = generateUUID();

Expand Down Expand Up @@ -10372,7 +10375,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

let _id$1 = 0;
let _id$2 = 0;

const _m1 = /*@__PURE__*/ new Matrix4();
const _obj = /*@__PURE__*/ new Object3D();
Expand All @@ -10389,7 +10392,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

this.isBufferGeometry = true;

Object.defineProperty( this, 'id', { value: _id$1 ++ } );
Object.defineProperty( this, 'id', { value: _id$2 ++ } );

this.uuid = generateUUID();

Expand Down Expand Up @@ -20057,7 +20060,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

let _id = 0;
let _id$1 = 0;

class WebGLShaderCache {

Expand Down Expand Up @@ -20171,7 +20174,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

constructor( code ) {

this.id = _id ++;
this.id = _id$1 ++;

this.code = code;
this.usedTimes = 0;
Expand Down Expand Up @@ -25833,13 +25836,15 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

// BPTC

if ( p === RGBA_BPTC_Format ) {
if ( p === RGBA_BPTC_Format || p === SRGB_ALPHA_BPTC_Format || p === RGB_BPTC_SIGNED_Format || p === RGB_BPTC_UNSIGNED_Format ) {

extension = extensions.get( 'EXT_texture_compression_bptc' );

if ( extension !== null ) {

if ( p === RGBA_BPTC_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
if ( p === RGBA_BPTC_Format || p === SRGB_ALPHA_BPTC_Format ) return ( colorSpace === SRGBColorSpace ) ? extension.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : extension.COMPRESSED_RGBA_BPTC_UNORM_EXT;
if ( p === RGB_BPTC_SIGNED_Format ) return extension.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
if ( p === RGB_BPTC_UNSIGNED_Format ) return extension.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;

} else {

Expand Down Expand Up @@ -45919,6 +45924,12 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

disconnect() {

if ( this._connected === false ) {

return;

}

if ( this.filters.length > 0 ) {

this.source.disconnect( this.filters[ 0 ] );
Expand Down Expand Up @@ -49167,7 +49178,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

let id = 0;
let _id = 0;

class UniformsGroup extends EventDispatcher {

Expand All @@ -49177,7 +49188,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

this.isUniformsGroup = true;

Object.defineProperty( this, 'id', { value: id ++ } );
Object.defineProperty( this, 'id', { value: _id ++ } );

this.name = '';

Expand Down Expand Up @@ -51737,6 +51748,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
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.RGB_BPTC_SIGNED_Format = RGB_BPTC_SIGNED_Format;
exports.RGB_BPTC_UNSIGNED_Format = RGB_BPTC_UNSIGNED_Format;
exports.RGB_ETC1_Format = RGB_ETC1_Format;
exports.RGB_ETC2_Format = RGB_ETC2_Format;
exports.RGB_PVRTC_2BPPV1_Format = RGB_PVRTC_2BPPV1_Format;
Expand All @@ -51759,6 +51772,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
exports.SIGNED_RED_GREEN_RGTC2_Format = SIGNED_RED_GREEN_RGTC2_Format;
exports.SIGNED_RED_RGTC1_Format = SIGNED_RED_RGTC1_Format;
exports.SRGBColorSpace = SRGBColorSpace;
exports.SRGB_ALPHA_BPTC_Format = SRGB_ALPHA_BPTC_Format;
exports.Scene = Scene;
exports.ShaderChunk = ShaderChunk;
exports.ShaderLib = ShaderLib;
Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit eb8f9bd

Please sign in to comment.