浏览代码

Updated builds.

Mr.doob 4 年之前
父节点
当前提交
4d90e23c8f
共有 3 个文件被更改,包括 5 次插入9 次删除
  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) {

文件差异内容过多而无法显示
+ 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 ) );
 
 	}
 

部分文件因为文件数量过多而无法显示