浏览代码

Updated builds.

Mr.doob 5 年之前
父节点
当前提交
879260dccc
共有 3 个文件被更改,包括 521 次插入453 次删除
  1. 37 3
      build/three.js
  2. 447 447
      build/three.min.js
  3. 37 3
      build/three.module.js

+ 37 - 3
build/three.js

@@ -16075,7 +16075,7 @@
 
 			if ( capabilities.isWebGL2 === true && ( type === 5124 || type === 5125 ) ) {
 
-				gl.vertexAttribIPointer( index, size, type, normalized, stride, offset );
+				gl.vertexAttribIPointer( index, size, type, stride, offset );
 
 			} else {
 
@@ -24267,7 +24267,13 @@
 				uniforms.reflectivity.value = material.reflectivity;
 				uniforms.refractionRatio.value = material.refractionRatio;
 
-				uniforms.maxMipLevel.value = properties.get( envMap ).__maxMipLevel;
+				var maxMipLevel = properties.get( envMap ).__maxMipLevel;
+
+				if ( maxMipLevel !== undefined ) {
+
+					uniforms.maxMipLevel.value = maxMipLevel;
+
+				}
 
 			}
 
@@ -27038,6 +27044,16 @@
 
 			}
 
+		},
+
+		needsUpdate: {
+
+			set: function ( value ) {
+
+				this.data.needsUpdate = value;
+
+			}
+
 		}
 
 	} );
@@ -40652,7 +40668,6 @@
 			if ( json.side !== undefined ) { material.side = json.side; }
 			if ( json.opacity !== undefined ) { material.opacity = json.opacity; }
 			if ( json.transparent !== undefined ) { material.transparent = json.transparent; }
-			if ( json.transparency !== undefined ) { material.transparency = json.transparency; }
 			if ( json.alphaTest !== undefined ) { material.alphaTest = json.alphaTest; }
 			if ( json.depthTest !== undefined ) { material.depthTest = json.depthTest; }
 			if ( json.depthWrite !== undefined ) { material.depthWrite = json.depthWrite; }
@@ -50790,6 +50805,25 @@
 
 	} );
 
+	Object.defineProperties( MeshPhysicalMaterial.prototype, {
+
+		transparency: {
+			get: function () {
+
+				console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' );
+				return this.transmission;
+
+			},
+			set: function ( value ) {
+
+				console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' );
+				this.transmission = value;
+
+			}
+		}
+
+	} );
+
 	Object.defineProperties( ShaderMaterial.prototype, {
 
 		derivatives: {

文件差异内容过多而无法显示
+ 447 - 447
build/three.min.js


+ 37 - 3
build/three.module.js

@@ -16068,7 +16068,7 @@ function WebGLBindingStates( gl, extensions, attributes, capabilities ) {
 
 		if ( capabilities.isWebGL2 === true && ( type === 5124 || type === 5125 ) ) {
 
-			gl.vertexAttribIPointer( index, size, type, normalized, stride, offset );
+			gl.vertexAttribIPointer( index, size, type, stride, offset );
 
 		} else {
 
@@ -24265,7 +24265,13 @@ function WebGLMaterials( properties ) {
 			uniforms.reflectivity.value = material.reflectivity;
 			uniforms.refractionRatio.value = material.refractionRatio;
 
-			uniforms.maxMipLevel.value = properties.get( envMap ).__maxMipLevel;
+			var maxMipLevel = properties.get( envMap ).__maxMipLevel;
+
+			if ( maxMipLevel !== undefined ) {
+
+				uniforms.maxMipLevel.value = maxMipLevel;
+
+			}
 
 		}
 
@@ -27036,6 +27042,16 @@ Object.defineProperties( InterleavedBufferAttribute.prototype, {
 
 		}
 
+	},
+
+	needsUpdate: {
+
+		set: function ( value ) {
+
+			this.data.needsUpdate = value;
+
+		}
+
 	}
 
 } );
@@ -40648,7 +40664,6 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 		if ( json.side !== undefined ) material.side = json.side;
 		if ( json.opacity !== undefined ) material.opacity = json.opacity;
 		if ( json.transparent !== undefined ) material.transparent = json.transparent;
-		if ( json.transparency !== undefined ) material.transparency = json.transparency;
 		if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest;
 		if ( json.depthTest !== undefined ) material.depthTest = json.depthTest;
 		if ( json.depthWrite !== undefined ) material.depthWrite = json.depthWrite;
@@ -51039,6 +51054,25 @@ Object.defineProperties( MeshPhongMaterial.prototype, {
 
 } );
 
+Object.defineProperties( MeshPhysicalMaterial.prototype, {
+
+	transparency: {
+		get: function () {
+
+			console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' );
+			return this.transmission;
+
+		},
+		set: function ( value ) {
+
+			console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' );
+			this.transmission = value;
+
+		}
+	}
+
+} );
+
 Object.defineProperties( ShaderMaterial.prototype, {
 
 	derivatives: {

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