Ver Fonte

Updated builds.

Mr.doob há 4 anos atrás
pai
commit
4d90e23c8f
3 ficheiros alterados com 5 adições e 9 exclusões
  1. 3 5
      build/three.js
  2. 0 0
      build/three.min.js
  3. 2 4
      build/three.module.js

+ 3 - 5
build/three.js

@@ -8411,8 +8411,7 @@
 	var TYPED_ARRAYS = {
 		Int8Array: Int8Array,
 		Uint8Array: Uint8Array,
-		// Workaround for IE11 pre KB2929437. See #11440
-		Uint8ClampedArray: typeof Uint8ClampedArray !== 'undefined' ? Uint8ClampedArray : Uint8Array,
+		Uint8ClampedArray: Uint8ClampedArray,
 		Int16Array: Int16Array,
 		Uint16Array: Uint16Array,
 		Int32Array: Int32Array,
@@ -16300,9 +16299,8 @@
 		function generateMipmap(target, texture, width, height) {
 			_gl.generateMipmap(target);
 
-			var textureProperties = properties.get(texture); // Note: Math.log( x ) * Math.LOG2E used instead of Math.log2( x ) which is not supported by IE11
-
-			textureProperties.__maxMipLevel = Math.log(Math.max(width, height)) * Math.LOG2E;
+			var textureProperties = properties.get(texture);
+			textureProperties.__maxMipLevel = Math.log2(Math.max(width, height));
 		}
 
 		function getInternalFormat(internalFormatName, glFormat, glType) {

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
build/three.min.js


+ 2 - 4
build/three.module.js

@@ -9523,8 +9523,7 @@ function arrayMax( array ) {
 const TYPED_ARRAYS = {
 	Int8Array: Int8Array,
 	Uint8Array: Uint8Array,
-	// Workaround for IE11 pre KB2929437. See #11440
-	Uint8ClampedArray: typeof Uint8ClampedArray !== 'undefined' ? Uint8ClampedArray : Uint8Array,
+	Uint8ClampedArray: Uint8ClampedArray,
 	Int16Array: Int16Array,
 	Uint16Array: Uint16Array,
 	Int32Array: Int32Array,
@@ -20183,8 +20182,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 		const textureProperties = properties.get( texture );
 
-		// Note: Math.log( x ) * Math.LOG2E used instead of Math.log2( x ) which is not supported by IE11
-		textureProperties.__maxMipLevel = Math.log( Math.max( width, height ) ) * Math.LOG2E;
+		textureProperties.__maxMipLevel = Math.log2( Math.max( width, height ) );
 
 	}
 

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff