The example you linked uses the CanvasRenderer
(not the WebGLRenderer
) which does support lineWidth
. WebGLRenderer
however has to rely on what the WebGL implementation provides.
On Windows, both Chrome and Firefox default to using ANGLE (some layer on top of DirectX) which does not support lineWidth
. Firefox on Windows can however be switched to OpenGL, and then (depending on the video card drivers) lineWidth
may be supported.
(Chrome has a command line option to switch it to OpenGL mode, but that's no longer a supported or functional configuration, it just hangs on startup ... you don't need to bother trying).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…