Explorar o código

Updated builds.

Mugen87 %!s(int64=2) %!d(string=hai) anos
pai
achega
918c5ea03d
Modificáronse 4 ficheiros con 12 adicións e 15 borrados
  1. 4 5
      build/three.cjs
  2. 4 5
      build/three.js
  3. 0 0
      build/three.min.js
  4. 4 5
      build/three.module.js

+ 4 - 5
build/three.cjs

@@ -16579,7 +16579,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 		_gl.generateMipmap(target);
 	}
 
-	function getInternalFormat(internalFormatName, glFormat, glType, encoding, isVideoTexture = false) {
+	function getInternalFormat(internalFormatName, glFormat, glType, encoding, forcePassthroughEncoding = false) {
 		if (isWebGL2 === false) return glFormat;
 
 		if (internalFormatName !== null) {
@@ -16604,7 +16604,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 		if (glFormat === _gl.RGBA) {
 			if (glType === _gl.FLOAT) internalFormat = _gl.RGBA32F;
 			if (glType === _gl.HALF_FLOAT) internalFormat = _gl.RGBA16F;
-			if (glType === _gl.UNSIGNED_BYTE) internalFormat = encoding === sRGBEncoding && isVideoTexture === false ? _gl.SRGB8_ALPHA8 : _gl.RGBA8;
+			if (glType === _gl.UNSIGNED_BYTE) internalFormat = encoding === sRGBEncoding && forcePassthroughEncoding === false ? _gl.SRGB8_ALPHA8 : _gl.RGBA8;
 			if (glType === _gl.UNSIGNED_SHORT_4_4_4_4) internalFormat = _gl.RGBA4;
 			if (glType === _gl.UNSIGNED_SHORT_5_5_5_1) internalFormat = _gl.RGB5_A1;
 		}
@@ -17550,7 +17550,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 
 					const glFormat = utils.convert(texture.format, texture.encoding);
 					const glType = utils.convert(texture.type);
-					const glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
+					const glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding, true);
 					const samples = getRenderTargetSamples(renderTarget);
 
 					_gl.renderbufferStorageMultisample(_gl.RENDERBUFFER, samples, glInternalFormat, renderTarget.width, renderTarget.height);
@@ -29179,8 +29179,7 @@ class LightShadow {
 		this._frustum.setFromProjectionMatrix(_projScreenMatrix$1);
 
 		shadowMatrix.set(0.5, 0.0, 0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 1.0);
-		shadowMatrix.multiply(shadowCamera.projectionMatrix);
-		shadowMatrix.multiply(shadowCamera.matrixWorldInverse);
+		shadowMatrix.multiply(_projScreenMatrix$1);
 	}
 
 	getViewport(viewportIndex) {

+ 4 - 5
build/three.js

@@ -16581,7 +16581,7 @@
 			_gl.generateMipmap(target);
 		}
 
-		function getInternalFormat(internalFormatName, glFormat, glType, encoding, isVideoTexture = false) {
+		function getInternalFormat(internalFormatName, glFormat, glType, encoding, forcePassthroughEncoding = false) {
 			if (isWebGL2 === false) return glFormat;
 
 			if (internalFormatName !== null) {
@@ -16606,7 +16606,7 @@
 			if (glFormat === _gl.RGBA) {
 				if (glType === _gl.FLOAT) internalFormat = _gl.RGBA32F;
 				if (glType === _gl.HALF_FLOAT) internalFormat = _gl.RGBA16F;
-				if (glType === _gl.UNSIGNED_BYTE) internalFormat = encoding === sRGBEncoding && isVideoTexture === false ? _gl.SRGB8_ALPHA8 : _gl.RGBA8;
+				if (glType === _gl.UNSIGNED_BYTE) internalFormat = encoding === sRGBEncoding && forcePassthroughEncoding === false ? _gl.SRGB8_ALPHA8 : _gl.RGBA8;
 				if (glType === _gl.UNSIGNED_SHORT_4_4_4_4) internalFormat = _gl.RGBA4;
 				if (glType === _gl.UNSIGNED_SHORT_5_5_5_1) internalFormat = _gl.RGB5_A1;
 			}
@@ -17552,7 +17552,7 @@
 
 						const glFormat = utils.convert(texture.format, texture.encoding);
 						const glType = utils.convert(texture.type);
-						const glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
+						const glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding, true);
 						const samples = getRenderTargetSamples(renderTarget);
 
 						_gl.renderbufferStorageMultisample(_gl.RENDERBUFFER, samples, glInternalFormat, renderTarget.width, renderTarget.height);
@@ -29181,8 +29181,7 @@
 			this._frustum.setFromProjectionMatrix(_projScreenMatrix$1);
 
 			shadowMatrix.set(0.5, 0.0, 0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 1.0);
-			shadowMatrix.multiply(shadowCamera.projectionMatrix);
-			shadowMatrix.multiply(shadowCamera.matrixWorldInverse);
+			shadowMatrix.multiply(_projScreenMatrix$1);
 		}
 
 		getViewport(viewportIndex) {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/three.min.js


+ 4 - 5
build/three.module.js

@@ -22361,7 +22361,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 	}
 
-	function getInternalFormat( internalFormatName, glFormat, glType, encoding, isVideoTexture = false ) {
+	function getInternalFormat( internalFormatName, glFormat, glType, encoding, forcePassthroughEncoding = false ) {
 
 		if ( isWebGL2 === false ) return glFormat;
 
@@ -22395,7 +22395,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 			if ( glType === 5126 ) internalFormat = 34836;
 			if ( glType === 5131 ) internalFormat = 34842;
-			if ( glType === 5121 ) internalFormat = ( encoding === sRGBEncoding && isVideoTexture === false ) ? 35907 : 32856;
+			if ( glType === 5121 ) internalFormat = ( encoding === sRGBEncoding && forcePassthroughEncoding === false ) ? 35907 : 32856;
 			if ( glType === 32819 ) internalFormat = 32854;
 			if ( glType === 32820 ) internalFormat = 32855;
 
@@ -23819,7 +23819,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 					const glFormat = utils.convert( texture.format, texture.encoding );
 					const glType = utils.convert( texture.type );
-					const glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType, texture.encoding );
+					const glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType, texture.encoding, true );
 					const samples = getRenderTargetSamples( renderTarget );
 					_gl.renderbufferStorageMultisample( 36161, samples, glInternalFormat, renderTarget.width, renderTarget.height );
 
@@ -40664,8 +40664,7 @@ class LightShadow {
 			0.0, 0.0, 0.0, 1.0
 		);
 
-		shadowMatrix.multiply( shadowCamera.projectionMatrix );
-		shadowMatrix.multiply( shadowCamera.matrixWorldInverse );
+		shadowMatrix.multiply( _projScreenMatrix$1 );
 
 	}
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio