浏览代码

renamed getFormat to getFormatName

SUNAG 9 年之前
父节点
当前提交
305f509db6
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/js/nodes/BuilderNode.js

+ 3 - 3
examples/js/nodes/BuilderNode.js

@@ -68,7 +68,7 @@ THREE.BuilderNode.prototype = {
 
 	},
 
-	getFormat : function( format ) {
+	getFormatName : function( format ) {
 
 		return format.replace( 'c', 'v3' ).replace( /fv1|iv1/, 'v1' );
 
@@ -76,7 +76,7 @@ THREE.BuilderNode.prototype = {
 
 	getFormatLength : function( format ) {
 
-		return parseInt( this.getFormat( format ).substr( 1 ) );
+		return parseInt( this.getFormatName( format ).substr( 1 ) );
 
 	},
 
@@ -90,7 +90,7 @@ THREE.BuilderNode.prototype = {
 
 	format : function( code, from, to ) {
 
-		var format = this.getFormat( from + '=' + to );
+		var format = this.getFormatName( from + '=' + to );
 
 		switch ( format ) {
 			case 'v1=v2': return 'vec2(' + code + ')';