Selaa lähdekoodia

NodeFrame: rename updateFrame to updateNode

sunag 7 vuotta sitten
vanhempi
commit
6ac7c94fc2

+ 1 - 1
examples/js/nodes/NodeFrame.js

@@ -21,7 +21,7 @@ THREE.NodeFrame.prototype.update = function ( delta ) {
 
 };
 
-THREE.NodeFrame.prototype.updateFrame = function ( node ) {
+THREE.NodeFrame.prototype.updateNode = function ( node ) {
 
 	if ( node.frameId === this.frameId ) return this;
 

+ 1 - 1
examples/js/nodes/NodeMaterial.js

@@ -72,7 +72,7 @@ THREE.NodeMaterial.prototype.updateFrame = function ( frame ) {
 
 	for ( var i = 0; i < this.updaters.length; ++ i ) {
 
-		frame.updateFrame( this.updaters[ i ] );
+		frame.updateNode( this.updaters[ i ] );
 
 	}
 

+ 1 - 1
examples/webgl_loader_nodes.html

@@ -274,7 +274,7 @@
 			var delta = clock.getDelta();
 
 			// update material animation and/or gpu calcs (pre-renderer)
-			if ( mesh.material instanceof THREE.NodeMaterial ) frame.update( delta ).updateFrame( mesh.material );
+			if ( mesh.material instanceof THREE.NodeMaterial ) frame.update( delta ).updateNode( mesh.material );
 
 			renderer.render( scene, camera );
 

+ 1 - 1
examples/webgl_materials_nodes.html

@@ -2391,7 +2391,7 @@
 			//mesh.rotation.z += .01;
 
 			// update material animation and/or gpu calcs (pre-renderer)
-			frame.update( delta ).updateFrame( mesh.material );
+			frame.update( delta ).updateNode( mesh.material );
 
 			// render to texture for sss/translucent material only
 			if ( rtTexture ) {

+ 1 - 1
examples/webgl_mirror_nodes.html

@@ -325,7 +325,7 @@
 			smallSphere.rotation.y = ( Math.PI / 2 ) - timer * 0.1;
 			smallSphere.rotation.z = timer * 0.8;
 
-			frame.update( delta ).updateFrame( groundMirrorMaterial );
+			frame.update( delta ).updateNode( groundMirrorMaterial );
 
 			render();
 

+ 1 - 1
examples/webgl_postprocessing_nodes.html

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

+ 3 - 3
examples/webgl_sprites_nodes.html

@@ -302,9 +302,9 @@
 
 			// update material animation and/or gpu calcs (pre-renderer)
 			frame.update( delta )
-				.updateFrame( sprite1.material )
-				.updateFrame( sprite2.material )
-				.updateFrame( sprite3.material );
+				.updateNode( sprite1.material )
+				.updateNode( sprite2.material )
+				.updateNode( sprite3.material );
 
 			// rotate sprite
 			sprite3.rotation.z -= Math.PI * .005;