xzw 2 rokov pred
rodič
commit
127dc1d710
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      libs/three.js/lines/LineMaterial.js

+ 1 - 1
libs/three.js/lines/LineMaterial.js

@@ -273,7 +273,7 @@ ShaderLib[ 'line' ] = {
 				offset *= lineWidth;
 
 				// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...
-				offset /= resolution.y * devicePixelRatio;
+				offset /= resolution.y;// * devicePixelRatio;
 
 				// select end
 				vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;