2
0
Эх сурвалжийг харах

WebGLRenderer: Applying pixelRatio to lineWidth.

Mr.doob 10 жил өмнө
parent
commit
83e409eafa

+ 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 );