Răsfoiți Sursa

Updated builds.

Mr.doob 3 ani în urmă
părinte
comite
7a1f3eb4e6
4 a modificat fișierele cu 10 adăugiri și 10 ștergeri
  1. 3 3
      build/three.cjs
  2. 3 3
      build/three.js
  3. 0 0
      build/three.min.js
  4. 4 4
      build/three.module.js

+ 3 - 3
build/three.cjs

@@ -17088,7 +17088,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
 					// (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/)
 					if (texture.type !== UnsignedShortType && texture.type !== UnsignedIntType) {
 						console.warn('THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.');
-						texture.type = UnsignedShortType;
+						texture.type = UnsignedIntType;
 						glType = utils.convert(texture.type);
 					}
 				}
@@ -18230,7 +18230,7 @@ class DepthTexture extends Texture {
 			throw new Error('DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat');
 		}
 
-		if (type === undefined && format === DepthFormat) type = UnsignedShortType;
+		if (type === undefined && format === DepthFormat) type = UnsignedIntType;
 		if (type === undefined && format === DepthStencilFormat) type = UnsignedInt248Type;
 		super(null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy);
 		this.isDepthTexture = true;
@@ -18443,7 +18443,7 @@ class WebXRManager extends EventDispatcher {
 					if (attributes.depth) {
 						glDepthFormat = attributes.stencil ? gl.DEPTH24_STENCIL8 : gl.DEPTH_COMPONENT24;
 						depthFormat = attributes.stencil ? DepthStencilFormat : DepthFormat;
-						depthType = attributes.stencil ? UnsignedInt248Type : UnsignedShortType;
+						depthType = attributes.stencil ? UnsignedInt248Type : UnsignedIntType;
 					}
 
 					const projectionlayerInit = {

+ 3 - 3
build/three.js

@@ -17090,7 +17090,7 @@
 						// (https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/)
 						if (texture.type !== UnsignedShortType && texture.type !== UnsignedIntType) {
 							console.warn('THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.');
-							texture.type = UnsignedShortType;
+							texture.type = UnsignedIntType;
 							glType = utils.convert(texture.type);
 						}
 					}
@@ -18232,7 +18232,7 @@
 				throw new Error('DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat');
 			}
 
-			if (type === undefined && format === DepthFormat) type = UnsignedShortType;
+			if (type === undefined && format === DepthFormat) type = UnsignedIntType;
 			if (type === undefined && format === DepthStencilFormat) type = UnsignedInt248Type;
 			super(null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy);
 			this.isDepthTexture = true;
@@ -18445,7 +18445,7 @@
 						if (attributes.depth) {
 							glDepthFormat = attributes.stencil ? gl.DEPTH24_STENCIL8 : gl.DEPTH_COMPONENT24;
 							depthFormat = attributes.stencil ? DepthStencilFormat : DepthFormat;
-							depthType = attributes.stencil ? UnsignedInt248Type : UnsignedShortType;
+							depthType = attributes.stencil ? UnsignedInt248Type : UnsignedIntType;
 						}
 
 						const projectionlayerInit = {

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
build/three.min.js


+ 4 - 4
build/three.module.js

@@ -23082,7 +23082,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 						console.warn( 'THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture.' );
 
-						texture.type = UnsignedShortType;
+						texture.type = UnsignedIntType;
 						glType = utils.convert( texture.type );
 
 					}
@@ -24784,7 +24784,7 @@ class DepthTexture extends Texture {
 
 		}
 
-		if ( type === undefined && format === DepthFormat ) type = UnsignedShortType;
+		if ( type === undefined && format === DepthFormat ) type = UnsignedIntType;
 		if ( type === undefined && format === DepthStencilFormat ) type = UnsignedInt248Type;
 
 		super( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
@@ -24797,7 +24797,7 @@ class DepthTexture extends Texture {
 		this.minFilter = minFilter !== undefined ? minFilter : NearestFilter;
 
 		this.flipY = false;
-		this.generateMipmaps	= false;
+		this.generateMipmaps = false;
 
 	}
 
@@ -25079,7 +25079,7 @@ class WebXRManager extends EventDispatcher {
 
 						glDepthFormat = attributes.stencil ? 35056 : 33190;
 						depthFormat = attributes.stencil ? DepthStencilFormat : DepthFormat;
-						depthType = attributes.stencil ? UnsignedInt248Type : UnsignedShortType;
+						depthType = attributes.stencil ? UnsignedInt248Type : UnsignedIntType;
 
 					}
 

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff