提交 e909f084 编写于 作者: J Jay Weisskopf 提交者: GitHub

Return UV vector from Texture.transformUv method

This makes the method consistent with most other vector transformations, and will make it easier to include it in a chain of operations.
上级 98788fbd
......@@ -213,7 +213,7 @@ Object.assign( Texture.prototype, EventDispatcher.prototype, {
transformUv: function ( uv ) {
if ( this.mapping !== UVMapping ) return;
if ( this.mapping !== UVMapping ) return uv;
uv.multiply( this.repeat );
uv.add( this.offset );
......@@ -286,6 +286,8 @@ Object.assign( Texture.prototype, EventDispatcher.prototype, {
}
return uv;
}
} );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册