Browse Source

WebGLRenderer: Applying pixelRatio to lineWidth.

Mr.doob 10 năm trước cách đây
mục cha
commit
83e409eafa
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/renderers/WebGLRenderer.js

+ 2 - 0
src/renderers/WebGLRenderer.js

@@ -5535,6 +5535,8 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 	function setLineWidth ( width ) {
 
+		width *= pixelRatio;
+
 		if ( width !== _oldLineWidth ) {
 
 			_gl.lineWidth( width );