Browse Source

Updated builds.

Mr.doob 2 years ago
parent
commit
5cfc330410
4 changed files with 29 additions and 21 deletions
  1. 9 7
      build/three.cjs
  2. 9 7
      build/three.js
  3. 0 0
      build/three.min.js
  4. 11 7
      build/three.module.js

+ 9 - 7
build/three.cjs

@@ -7,7 +7,7 @@
 
 
 Object.defineProperty(exports, '__esModule', { value: true });
 Object.defineProperty(exports, '__esModule', { value: true });
 
 
-const REVISION = '144';
+const REVISION = '145dev';
 const MOUSE = {
 const MOUSE = {
 	LEFT: 0,
 	LEFT: 0,
 	MIDDLE: 1,
 	MIDDLE: 1,
@@ -16946,8 +16946,9 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 		const source = texture.source;
 		const source = texture.source;
 		state.activeTexture(_gl.TEXTURE0 + slot);
 		state.activeTexture(_gl.TEXTURE0 + slot);
 		state.bindTexture(textureType, textureProperties.__webglTexture);
 		state.bindTexture(textureType, textureProperties.__webglTexture);
+		const sourceProperties = properties.get(source);
 
 
-		if (source.version !== source.__currentVersion || forceUpload === true) {
+		if (source.version !== sourceProperties.__version || forceUpload === true) {
 			_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL, texture.flipY);
 			_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL, texture.flipY);
 
 
 			_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha);
 			_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha);
@@ -16967,7 +16968,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 			let mipmap;
 			let mipmap;
 			const mipmaps = texture.mipmaps;
 			const mipmaps = texture.mipmaps;
 			const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
 			const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
-			const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
+			const allocateMemory = sourceProperties.__version === undefined || forceUpload === true;
 			const levels = getMipLevels(texture, image, supportsMips);
 			const levels = getMipLevels(texture, image, supportsMips);
 
 
 			if (texture.isDepthTexture) {
 			if (texture.isDepthTexture) {
@@ -17154,7 +17155,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 				generateMipmap(textureType);
 				generateMipmap(textureType);
 			}
 			}
 
 
-			source.__currentVersion = source.version;
+			sourceProperties.__version = source.version;
 			if (texture.onUpdate) texture.onUpdate(texture);
 			if (texture.onUpdate) texture.onUpdate(texture);
 		}
 		}
 
 
@@ -17167,8 +17168,9 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 		const source = texture.source;
 		const source = texture.source;
 		state.activeTexture(_gl.TEXTURE0 + slot);
 		state.activeTexture(_gl.TEXTURE0 + slot);
 		state.bindTexture(_gl.TEXTURE_CUBE_MAP, textureProperties.__webglTexture);
 		state.bindTexture(_gl.TEXTURE_CUBE_MAP, textureProperties.__webglTexture);
+		const sourceProperties = properties.get(source);
 
 
-		if (source.version !== source.__currentVersion || forceUpload === true) {
+		if (source.version !== sourceProperties.__version || forceUpload === true) {
 			_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL, texture.flipY);
 			_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL, texture.flipY);
 
 
 			_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha);
 			_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha);
@@ -17197,7 +17199,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 						glType = utils.convert(texture.type),
 						glType = utils.convert(texture.type),
 						glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
 						glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
 			const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
 			const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
-			const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
+			const allocateMemory = sourceProperties.__version === undefined || forceUpload === true;
 			let levels = getMipLevels(texture, image, supportsMips);
 			let levels = getMipLevels(texture, image, supportsMips);
 			setTextureParameters(_gl.TEXTURE_CUBE_MAP, texture, supportsMips);
 			setTextureParameters(_gl.TEXTURE_CUBE_MAP, texture, supportsMips);
 			let mipmaps;
 			let mipmaps;
@@ -17286,7 +17288,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 				generateMipmap(_gl.TEXTURE_CUBE_MAP);
 				generateMipmap(_gl.TEXTURE_CUBE_MAP);
 			}
 			}
 
 
-			source.__currentVersion = source.version;
+			sourceProperties.__version = source.version;
 			if (texture.onUpdate) texture.onUpdate(texture);
 			if (texture.onUpdate) texture.onUpdate(texture);
 		}
 		}
 
 

+ 9 - 7
build/three.js

@@ -9,7 +9,7 @@
 	(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
 	(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
 })(this, (function (exports) { 'use strict';
 })(this, (function (exports) { 'use strict';
 
 
-	const REVISION = '144';
+	const REVISION = '145dev';
 	const MOUSE = {
 	const MOUSE = {
 		LEFT: 0,
 		LEFT: 0,
 		MIDDLE: 1,
 		MIDDLE: 1,
@@ -16948,8 +16948,9 @@
 			const source = texture.source;
 			const source = texture.source;
 			state.activeTexture(_gl.TEXTURE0 + slot);
 			state.activeTexture(_gl.TEXTURE0 + slot);
 			state.bindTexture(textureType, textureProperties.__webglTexture);
 			state.bindTexture(textureType, textureProperties.__webglTexture);
+			const sourceProperties = properties.get(source);
 
 
-			if (source.version !== source.__currentVersion || forceUpload === true) {
+			if (source.version !== sourceProperties.__version || forceUpload === true) {
 				_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL, texture.flipY);
 				_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL, texture.flipY);
 
 
 				_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha);
 				_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha);
@@ -16969,7 +16970,7 @@
 				let mipmap;
 				let mipmap;
 				const mipmaps = texture.mipmaps;
 				const mipmaps = texture.mipmaps;
 				const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
 				const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
-				const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
+				const allocateMemory = sourceProperties.__version === undefined || forceUpload === true;
 				const levels = getMipLevels(texture, image, supportsMips);
 				const levels = getMipLevels(texture, image, supportsMips);
 
 
 				if (texture.isDepthTexture) {
 				if (texture.isDepthTexture) {
@@ -17156,7 +17157,7 @@
 					generateMipmap(textureType);
 					generateMipmap(textureType);
 				}
 				}
 
 
-				source.__currentVersion = source.version;
+				sourceProperties.__version = source.version;
 				if (texture.onUpdate) texture.onUpdate(texture);
 				if (texture.onUpdate) texture.onUpdate(texture);
 			}
 			}
 
 
@@ -17169,8 +17170,9 @@
 			const source = texture.source;
 			const source = texture.source;
 			state.activeTexture(_gl.TEXTURE0 + slot);
 			state.activeTexture(_gl.TEXTURE0 + slot);
 			state.bindTexture(_gl.TEXTURE_CUBE_MAP, textureProperties.__webglTexture);
 			state.bindTexture(_gl.TEXTURE_CUBE_MAP, textureProperties.__webglTexture);
+			const sourceProperties = properties.get(source);
 
 
-			if (source.version !== source.__currentVersion || forceUpload === true) {
+			if (source.version !== sourceProperties.__version || forceUpload === true) {
 				_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL, texture.flipY);
 				_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL, texture.flipY);
 
 
 				_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha);
 				_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, texture.premultiplyAlpha);
@@ -17199,7 +17201,7 @@
 							glType = utils.convert(texture.type),
 							glType = utils.convert(texture.type),
 							glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
 							glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
 				const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
 				const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
-				const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
+				const allocateMemory = sourceProperties.__version === undefined || forceUpload === true;
 				let levels = getMipLevels(texture, image, supportsMips);
 				let levels = getMipLevels(texture, image, supportsMips);
 				setTextureParameters(_gl.TEXTURE_CUBE_MAP, texture, supportsMips);
 				setTextureParameters(_gl.TEXTURE_CUBE_MAP, texture, supportsMips);
 				let mipmaps;
 				let mipmaps;
@@ -17288,7 +17290,7 @@
 					generateMipmap(_gl.TEXTURE_CUBE_MAP);
 					generateMipmap(_gl.TEXTURE_CUBE_MAP);
 				}
 				}
 
 
-				source.__currentVersion = source.version;
+				sourceProperties.__version = source.version;
 				if (texture.onUpdate) texture.onUpdate(texture);
 				if (texture.onUpdate) texture.onUpdate(texture);
 			}
 			}
 
 

File diff suppressed because it is too large
+ 0 - 0
build/three.min.js


+ 11 - 7
build/three.module.js

@@ -3,7 +3,7 @@
  * Copyright 2010-2022 Three.js Authors
  * Copyright 2010-2022 Three.js Authors
  * SPDX-License-Identifier: MIT
  * SPDX-License-Identifier: MIT
  */
  */
-const REVISION = '144';
+const REVISION = '145dev';
 const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
 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 TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
 const CullFaceNone = 0;
 const CullFaceNone = 0;
@@ -22871,7 +22871,9 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 		state.activeTexture( 33984 + slot );
 		state.activeTexture( 33984 + slot );
 		state.bindTexture( textureType, textureProperties.__webglTexture );
 		state.bindTexture( textureType, textureProperties.__webglTexture );
 
 
-		if ( source.version !== source.__currentVersion || forceUpload === true ) {
+		const sourceProperties = properties.get( source );
+
+		if ( source.version !== sourceProperties.__version || forceUpload === true ) {
 
 
 			_gl.pixelStorei( 37440, texture.flipY );
 			_gl.pixelStorei( 37440, texture.flipY );
 			_gl.pixelStorei( 37441, texture.premultiplyAlpha );
 			_gl.pixelStorei( 37441, texture.premultiplyAlpha );
@@ -22894,7 +22896,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 			const mipmaps = texture.mipmaps;
 			const mipmaps = texture.mipmaps;
 
 
 			const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
 			const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
-			const allocateMemory = ( source.__currentVersion === undefined ) || ( forceUpload === true );
+			const allocateMemory = ( sourceProperties.__version === undefined ) || ( forceUpload === true );
 			const levels = getMipLevels( texture, image, supportsMips );
 			const levels = getMipLevels( texture, image, supportsMips );
 
 
 			if ( texture.isDepthTexture ) {
 			if ( texture.isDepthTexture ) {
@@ -23210,7 +23212,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 
 			}
 			}
 
 
-			source.__currentVersion = source.version;
+			sourceProperties.__version = source.version;
 
 
 			if ( texture.onUpdate ) texture.onUpdate( texture );
 			if ( texture.onUpdate ) texture.onUpdate( texture );
 
 
@@ -23230,7 +23232,9 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 		state.activeTexture( 33984 + slot );
 		state.activeTexture( 33984 + slot );
 		state.bindTexture( 34067, textureProperties.__webglTexture );
 		state.bindTexture( 34067, textureProperties.__webglTexture );
 
 
-		if ( source.version !== source.__currentVersion || forceUpload === true ) {
+		const sourceProperties = properties.get( source );
+
+		if ( source.version !== sourceProperties.__version || forceUpload === true ) {
 
 
 			_gl.pixelStorei( 37440, texture.flipY );
 			_gl.pixelStorei( 37440, texture.flipY );
 			_gl.pixelStorei( 37441, texture.premultiplyAlpha );
 			_gl.pixelStorei( 37441, texture.premultiplyAlpha );
@@ -23265,7 +23269,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 				glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType, texture.encoding );
 				glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType, texture.encoding );
 
 
 			const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
 			const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
-			const allocateMemory = ( source.__currentVersion === undefined ) || ( forceUpload === true );
+			const allocateMemory = ( sourceProperties.__version === undefined ) || ( forceUpload === true );
 			let levels = getMipLevels( texture, image, supportsMips );
 			let levels = getMipLevels( texture, image, supportsMips );
 
 
 			setTextureParameters( 34067, texture, supportsMips );
 			setTextureParameters( 34067, texture, supportsMips );
@@ -23414,7 +23418,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 
 			}
 			}
 
 
-			source.__currentVersion = source.version;
+			sourceProperties.__version = source.version;
 
 
 			if ( texture.onUpdate ) texture.onUpdate( texture );
 			if ( texture.onUpdate ) texture.onUpdate( texture );
 
 

Some files were not shown because too many files changed in this diff