提交 83e409ea 编写于 作者: M Mr.doob

WebGLRenderer: Applying pixelRatio to lineWidth.

上级 2fde3295
...@@ -5535,6 +5535,8 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -5535,6 +5535,8 @@ THREE.WebGLRenderer = function ( parameters ) {
function setLineWidth ( width ) { function setLineWidth ( width ) {
width *= pixelRatio;
if ( width !== _oldLineWidth ) { if ( width !== _oldLineWidth ) {
_gl.lineWidth( width ); _gl.lineWidth( width );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册