Bläddra i källkod

Fix additional offset

Tentone 8 år sedan
förälder
incheckning
c318c58688
1 ändrade filer med 2 tillägg och 2 borttagningar
  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 );
 
 			}