@@ -565,8 +565,6 @@ Object.assign( THREE.NodeMaterialLoader.prototype, {
}
- object.build();
-
if ( node.fog !== undefined ) object.fog = node.fog;
if ( node.lights !== undefined ) object.lights = node.lights;
@@ -22,14 +22,6 @@ THREE.NodePass = function () {
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 );
@@ -275,7 +275,7 @@
// unserialize
- var material = new THREE.NodeMaterialLoader( null, library ).parse( json );
+ var material = new THREE.NodeMaterialLoader( null, library ).parse( json ).build();
// replace material