sunag 7 年之前
父节点
当前提交
6f16e128c6

+ 0 - 2
examples/js/loaders/NodeMaterialLoader.js

@@ -565,8 +565,6 @@ Object.assign( THREE.NodeMaterialLoader.prototype, {
 
 
 			}
 			}
 
 
-			object.build();
-
 			if ( node.fog !== undefined ) object.fog = node.fog;
 			if ( node.fog !== undefined ) object.fog = node.fog;
 			if ( node.lights !== undefined ) object.lights = node.lights;
 			if ( node.lights !== undefined ) object.lights = node.lights;
 
 

+ 0 - 8
examples/js/nodes/postprocessing/NodePass.js

@@ -22,14 +22,6 @@ THREE.NodePass = function () {
 
 
 	this.needsUpdate = true;
 	this.needsUpdate = true;
 
 
-	this.node.build = function ( params ) {
-
-		THREE.NodeMaterial.prototype.build.call( this, params );
-
-		self.uniforms = this.uniforms;
-
-	};
-
 };
 };
 
 
 THREE.NodePass.prototype = Object.create( THREE.ShaderPass.prototype );
 THREE.NodePass.prototype = Object.create( THREE.ShaderPass.prototype );

+ 1 - 1
examples/webgl_sprites_nodes.html

@@ -275,7 +275,7 @@
 
 
 			// unserialize
 			// unserialize
 
 
-			var material = new THREE.NodeMaterialLoader( null, library ).parse( json );
+			var material = new THREE.NodeMaterialLoader( null, library ).parse( json ).build();
 
 
 			// replace material
 			// replace material