You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: The webgl spec, based on the OpenGL ES 2.0/3.0 specs points out that the minimum and maximum width for a line is implementation defined. The maximum minimum width is allowed to be 1.0. The minimum maximum width is also allowed to be 1.0. Because of these implementation defined limits it is not recommended to use line widths other than 1.0 since there is no guarantee any user's browser will display any other width.
As of January 2017 most implementations of WebGL only support a minimum of 1 and a maximum of 1 as the technology they are based on has these same limits.
The only value allowed for the line width is 1 since OpenGL 2. Chromium also accepts only the value 1: Issue 119, but it indicates that the maximum value is 7.375. ¯\_(ツ)_/¯
Thank you for bringing this to my attention. This is very informative and well documented. I'm adding ALIASED_LINE_WIDTH_RANGE to allow mismatch. This will prevent this from impacting the score.
CreepJS report this alert on Firefox (not in Chromium):
Looking at the source code, I think CreepJS is comparing the value of
ALIASED_LINE_WIDTH_RANGE
for"webgl"
and"webgl2"
. Here is a test equivalent:lspci
: VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)Firefox 108.0 (64 bits) / Mozilla Firefox Snap for Ubuntu / canonical-002 - 1.0:
Chromium Version 108.0.5359.124 (Build officiel) snap (64 bits):
WebGLRenderingContext.lineWidth()
on MDN:The only value allowed for the line width is
1
since OpenGL 2. Chromium also accepts only the value1
: Issue 119, but it indicates that the maximum value is7.375
. ¯\_(ツ)_/¯On other devices:
webgl: [1, 8] ; webgl2: [1, 8]
webgl: [1, 8] ; webgl2: [1, 8]
webgl: [1, 1] ; webgl2: [1, 1]
webgl: [1, 1] ; webgl2: [1, 1]
The text was updated successfully, but these errors were encountered: