Browse Source

Updated builds.

Mugen87 2 years ago
parent
commit
6360fe5783
5 changed files with 18 additions and 51 deletions
  1. 6 17
      build/three.cjs
  2. 6 17
      build/three.js
  3. 0 0
      build/three.min.js
  4. 6 17
      build/three.module.js
  5. 0 0
      build/three.module.min.js

+ 6 - 17
build/three.cjs

@@ -5,7 +5,7 @@
  */
  */
 'use strict';
 'use strict';
 
 
-const REVISION = '155';
+const REVISION = '156dev';
 
 
 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 };
@@ -14693,24 +14693,15 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
 
 
 		}
 		}
 
 
-		const xr = renderer.xr;
-		const environmentBlendMode = xr.getEnvironmentBlendMode();
+		const environmentBlendMode = renderer.xr.getEnvironmentBlendMode();
 
 
-		switch ( environmentBlendMode ) {
+		if ( environmentBlendMode === 'additive' ) {
 
 
-			case 'opaque':
-				forceClear = true;
-				break;
+			state.buffers.color.setClear( 0, 0, 0, 1, premultipliedAlpha );
 
 
-			case 'additive':
-				state.buffers.color.setClear( 0, 0, 0, 1, premultipliedAlpha );
-				forceClear = true;
-				break;
+		} else if ( environmentBlendMode === 'alpha-blend' ) {
 
 
-			case 'alpha-blend':
-				state.buffers.color.setClear( 0, 0, 0, 0, premultipliedAlpha );
-				forceClear = true;
-				break;
+			state.buffers.color.setClear( 0, 0, 0, 0, premultipliedAlpha );
 
 
 		}
 		}
 
 
@@ -42532,8 +42523,6 @@ class DataTextureLoader extends Loader {
 
 
 			}
 			}
 
 
-			if ( ! texData ) return onError(); // TODO: Remove this when all loaders properly throw errors
-
 			if ( texData.image !== undefined ) {
 			if ( texData.image !== undefined ) {
 
 
 				texture.image = texData.image;
 				texture.image = texData.image;

+ 6 - 17
build/three.js

@@ -10,7 +10,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 	(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 = '155';
+	const REVISION = '156dev';
 
 
 	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 };
@@ -14698,24 +14698,15 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 			}
 			}
 
 
-			const xr = renderer.xr;
-			const environmentBlendMode = xr.getEnvironmentBlendMode();
+			const environmentBlendMode = renderer.xr.getEnvironmentBlendMode();
 
 
-			switch ( environmentBlendMode ) {
+			if ( environmentBlendMode === 'additive' ) {
 
 
-				case 'opaque':
-					forceClear = true;
-					break;
+				state.buffers.color.setClear( 0, 0, 0, 1, premultipliedAlpha );
 
 
-				case 'additive':
-					state.buffers.color.setClear( 0, 0, 0, 1, premultipliedAlpha );
-					forceClear = true;
-					break;
+			} else if ( environmentBlendMode === 'alpha-blend' ) {
 
 
-				case 'alpha-blend':
-					state.buffers.color.setClear( 0, 0, 0, 0, premultipliedAlpha );
-					forceClear = true;
-					break;
+				state.buffers.color.setClear( 0, 0, 0, 0, premultipliedAlpha );
 
 
 			}
 			}
 
 
@@ -42537,8 +42528,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 				}
 				}
 
 
-				if ( ! texData ) return onError(); // TODO: Remove this when all loaders properly throw errors
-
 				if ( texData.image !== undefined ) {
 				if ( texData.image !== undefined ) {
 
 
 					texture.image = texData.image;
 					texture.image = texData.image;

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


+ 6 - 17
build/three.module.js

@@ -3,7 +3,7 @@
  * Copyright 2010-2023 Three.js Authors
  * Copyright 2010-2023 Three.js Authors
  * SPDX-License-Identifier: MIT
  * SPDX-License-Identifier: MIT
  */
  */
-const REVISION = '155';
+const REVISION = '156dev';
 
 
 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 };
@@ -14691,24 +14691,15 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
 
 
 		}
 		}
 
 
-		const xr = renderer.xr;
-		const environmentBlendMode = xr.getEnvironmentBlendMode();
+		const environmentBlendMode = renderer.xr.getEnvironmentBlendMode();
 
 
-		switch ( environmentBlendMode ) {
+		if ( environmentBlendMode === 'additive' ) {
 
 
-			case 'opaque':
-				forceClear = true;
-				break;
+			state.buffers.color.setClear( 0, 0, 0, 1, premultipliedAlpha );
 
 
-			case 'additive':
-				state.buffers.color.setClear( 0, 0, 0, 1, premultipliedAlpha );
-				forceClear = true;
-				break;
+		} else if ( environmentBlendMode === 'alpha-blend' ) {
 
 
-			case 'alpha-blend':
-				state.buffers.color.setClear( 0, 0, 0, 0, premultipliedAlpha );
-				forceClear = true;
-				break;
+			state.buffers.color.setClear( 0, 0, 0, 0, premultipliedAlpha );
 
 
 		}
 		}
 
 
@@ -42530,8 +42521,6 @@ class DataTextureLoader extends Loader {
 
 
 			}
 			}
 
 
-			if ( ! texData ) return onError(); // TODO: Remove this when all loaders properly throw errors
-
 			if ( texData.image !== undefined ) {
 			if ( texData.image !== undefined ) {
 
 
 				texture.image = texData.image;
 				texture.image = texData.image;

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


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