sunag 7 سال پیش
والد
کامیت
6ec83a76ca

+ 3 - 3
examples/js/nodes/inputs/RTTNode.js

@@ -6,9 +6,9 @@ import { InputNode } from '../core/InputNode.js';
 import { NodeMaterial } from '../materials/NodeMaterial.js';
 import { TextureNode } from './TextureNode.js';
 
-function RTTNode( width, height, node, options ) {
+function RTTNode( width, height, input, options ) {
 
-	this.node = node;
+	this.input = input;
 	
 	this.clear = true;
 	
@@ -33,7 +33,7 @@ RTTNode.prototype.nodeType = "RTT";
 
 RTTNode.prototype.generate = function ( builder, output ) {
 	
-	this.material.fragment.value = this.node;
+	this.material.fragment.value = this.input;
 	
 	return TextureNode.prototype.generate.call( this, builder, output );
 };

+ 6 - 7
examples/js/nodes/postprocessing/NodePass.js

@@ -20,8 +20,8 @@ function NodePass() {
 
 	this.fragment = new RawNode( new ScreenNode() );
 
-	this.node = new NodeMaterial();
-	this.node.fragment = this.fragment;
+	this.material = new NodeMaterial();
+	this.material.fragment = this.fragment;
 
 	this.needsUpdate = true;
 
@@ -36,14 +36,13 @@ NodePass.prototype.render = function () {
 
 	if ( this.needsUpdate ) {
 
-		this.node.dispose();
+		this.material.dispose();
 
 		this.needsUpdate = false;
 
 	}
 
-	this.uniforms = this.node.uniforms;
-	this.material = this.node;
+	this.uniforms = this.material.uniforms;
 
 	THREE.ShaderPass.prototype.render.apply( this, arguments );
 
@@ -51,7 +50,7 @@ NodePass.prototype.render = function () {
 
 NodePass.prototype.copy = function ( source ) {
 	
-	this.value = source.value;
+	this.material = source.material;
 	
 };
 
@@ -82,7 +81,7 @@ NodePass.prototype.toJSON = function ( meta ) {
 
 		if ( JSON.stringify( this.userData ) !== '{}' ) data.userData = this.userData;
 
-		data.value = this.value.toJSON( meta ).uuid;
+		data.material = this.material.toJSON( meta ).uuid;
 
 	}
 

+ 0 - 1
examples/js/nodes/procedural/CheckerNode.js

@@ -4,7 +4,6 @@
 
 import { TempNode } from '../core/TempNode.js';
 import { FunctionNode } from '../core/FunctionNode.js';
-import { FloatNode } from '../inputs/FloatNode.js';
 import { UVNode } from '../accessors/UVNode.js';
 
 function CheckerNode( uv ) {

+ 1 - 1
examples/webgl_postprocessing_nodes.html

@@ -547,7 +547,7 @@
 				object.rotation.x += 0.005;
 				object.rotation.y += 0.01;
 
-				frame.update( delta ).updateNode( nodepass.node );
+				frame.update( delta ).updateNode( nodepass.material );
 
 				composer.render();