소스 검색

HTMLMesh: Remove the +0.5 offset for image (#25930)

Vincent Fretin 2 년 전
부모
커밋
8be4325d6d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/jsm/interactive/HTMLMesh.js

+ 2 - 2
examples/jsm/interactive/HTMLMesh.js

@@ -281,8 +281,8 @@ function html2canvas( element ) {
 
 			x = rect.left - offset.left - 0.5;
 			y = rect.top - offset.top - 0.5;
-			width = rect.width + 0.5;
-			height = rect.height + 0.5;
+			width = rect.width;
+			height = rect.height;
 
 			context.drawImage( element, x, y, width, height );