diff --git a/examples/js/nodes/BuilderNode.js b/examples/js/nodes/BuilderNode.js index fd39f3d3739892c22ab8cac2cc383fb336b18213..dba4d707b629fac8d4f883c640bc4bd0b1eaa903 100644 --- a/examples/js/nodes/BuilderNode.js +++ b/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 + ')';