Browse Source

Updated builds.

Mr.doob 3 years ago
parent
commit
7ec17a2c1e
4 changed files with 3 additions and 6 deletions
  1. 1 2
      build/three.cjs
  2. 1 2
      build/three.js
  3. 0 0
      build/three.min.js
  4. 1 2
      build/three.module.js

+ 1 - 2
build/three.cjs

@@ -15380,7 +15380,6 @@ function WebGLLights(extensions, capabilities) {
 				const uniforms = state.hemi[hemiLength];
 				uniforms.direction.setFromMatrixPosition(light.matrixWorld);
 				uniforms.direction.transformDirection(viewMatrix);
-				uniforms.direction.normalize();
 				hemiLength++;
 			}
 		}
@@ -19978,7 +19977,7 @@ function WebGLRenderer(parameters = {}) {
 		if (_transmissionRenderTarget === null) {
 			_transmissionRenderTarget = new WebGLRenderTarget(1, 1, {
 				generateMipmaps: true,
-				type: utils.convert(HalfFloatType) !== null ? HalfFloatType : UnsignedByteType,
+				type: extensions.has('EXT_color_buffer_half_float') ? HalfFloatType : UnsignedByteType,
 				minFilter: LinearMipmapLinearFilter,
 				samples: isWebGL2 && _antialias === true ? 4 : 0
 			});

+ 1 - 2
build/three.js

@@ -15382,7 +15382,6 @@
 					const uniforms = state.hemi[hemiLength];
 					uniforms.direction.setFromMatrixPosition(light.matrixWorld);
 					uniforms.direction.transformDirection(viewMatrix);
-					uniforms.direction.normalize();
 					hemiLength++;
 				}
 			}
@@ -19980,7 +19979,7 @@
 			if (_transmissionRenderTarget === null) {
 				_transmissionRenderTarget = new WebGLRenderTarget(1, 1, {
 					generateMipmaps: true,
-					type: utils.convert(HalfFloatType) !== null ? HalfFloatType : UnsignedByteType,
+					type: extensions.has('EXT_color_buffer_half_float') ? HalfFloatType : UnsignedByteType,
 					minFilter: LinearMipmapLinearFilter,
 					samples: isWebGL2 && _antialias === true ? 4 : 0
 				});

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


+ 1 - 2
build/three.module.js

@@ -20571,7 +20571,6 @@ function WebGLLights( extensions, capabilities ) {
 
 				uniforms.direction.setFromMatrixPosition( light.matrixWorld );
 				uniforms.direction.transformDirection( viewMatrix );
-				uniforms.direction.normalize();
 
 				hemiLength ++;
 
@@ -27287,7 +27286,7 @@ function WebGLRenderer( parameters = {} ) {
 
 			_transmissionRenderTarget = new WebGLRenderTarget( 1, 1, {
 				generateMipmaps: true,
-				type: utils.convert( HalfFloatType ) !== null ? HalfFloatType : UnsignedByteType,
+				type: extensions.has( 'EXT_color_buffer_half_float' ) ? HalfFloatType : UnsignedByteType,
 				minFilter: LinearMipmapLinearFilter,
 				samples: ( isWebGL2 && _antialias === true ) ? 4 : 0
 			} );

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