提交 ca85e3a2 编写于 作者: M Mr.doob

Loader: Improved loadTexture.

上级 bb982de0
......@@ -76,16 +76,16 @@ THREE.Loader.prototype = {
if ( repeat !== undefined ) {
texture.repeat.set( repeat[ 0 ], repeat[ 1 ] );
texture.repeat.fromArray( repeat );
if ( repeat[ 0 ] > 1 ) texture.wrapS = THREE.RepeatWrapping;
if ( repeat[ 1 ] > 1 ) texture.wrapT = THREE.RepeatWrapping;
if ( repeat[ 0 ] !== 1 ) texture.wrapS = THREE.RepeatWrapping;
if ( repeat[ 1 ] !== 1 ) texture.wrapT = THREE.RepeatWrapping;
}
if ( offset !== undefined ) {
texture.offset.set( offset[ 0 ], offset[ 1 ] );
texture.offset.fromArray( offset );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册