浏览代码

Fix additional offset

Tentone 8 年之前
父节点
当前提交
c318c58688
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/renderers/WebGLRenderer.js

+ 2 - 2
src/renderers/WebGLRenderer.js

@@ -1995,7 +1995,7 @@ function WebGLRenderer( parameters ) {
 			    var offset = uvScaleMap.offset;
 			    var repeat = uvScaleMap.repeat;
 			    var rotation = uvScaleMap.rotation;
-			    uvScaleMap.matrix.setUvTransform( offset.x, offset.y, repeat.x, repeat.y, rotation, 0.5, 0.5 );
+			    uvScaleMap.matrix.setUvTransform( offset.x, offset.y, repeat.x, repeat.y, rotation, 0.0, 0.0 );
 
 			}
 
@@ -2036,7 +2036,7 @@ function WebGLRenderer( parameters ) {
 			    var offset = material.map.offset;
 			    var repeat = material.map.repeat;
 			    var rotation = material.map.rotation;
-			    material.map.matrix.setUvTransform( offset.x, offset.y, repeat.x, repeat.y, rotation, 0.5, 0.5 );
+			    material.map.matrix.setUvTransform( offset.x, offset.y, repeat.x, repeat.y, rotation, 0.0, 0.0 );
 
 			}