Explorar el Código

WebGLRenderer: Applying pixelRatio to lineWidth.

Mr.doob hace 10 años
padre
commit
83e409eafa
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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 );