Ver Fonte

WebGLRenderer: Applying pixelRatio to lineWidth.

Mr.doob há 10 anos atrás
pai
commit
83e409eafa
1 ficheiros alterados com 2 adições e 0 exclusões
  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 );