提交 305f509d 编写于 作者: S SUNAG

renamed getFormat to getFormatName

上级 694962ca
......@@ -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 + ')';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册