ソースを参照

fix copy and serialize

sunag 7 年 前
コミット
2641cd08ce

+ 2 - 2
examples/js/nodes/postprocessing/NodePass.js

@@ -47,7 +47,7 @@ NodePass.prototype.render = function () {
 
 NodePass.prototype.copy = function ( source ) {
 	
-	this.material = source.material;
+	this.input = source.input;
 	
 };
 
@@ -78,7 +78,7 @@ NodePass.prototype.toJSON = function ( meta ) {
 
 		if ( JSON.stringify( this.userData ) !== '{}' ) data.userData = this.userData;
 
-		data.material = this.material.toJSON( meta ).uuid;
+		data.input = this.input.toJSON( meta ).uuid;
 
 	}
 

+ 2 - 2
examples/js/nodes/postprocessing/NodePostProcessing.js

@@ -82,7 +82,7 @@ NodePostProcessing.prototype = {
 	
 	copy: function ( source ) {
 		
-		this.material = source.material;
+		this.output = source.output;
 		
 	},
 	
@@ -113,7 +113,7 @@ NodePostProcessing.prototype = {
 
 			if ( JSON.stringify( this.userData ) !== '{}' ) data.userData = this.userData;
 
-			data.material = this.material.toJSON( meta ).uuid;
+			data.output = this.output.toJSON( meta ).uuid;
 
 		}