device.isWebGLSupported
isWebGLSupported(options: object) → {boolean}
returns true if the device supports WebGL
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options | object |
<optional> |
context creation options |
|
options.failIfMajorPerformanceCaveat | boolean |
<optional> |
true |
If true, the renderer will switch to CANVAS mode if the performances of a WebGL context would be dramatically lower than that of a native application making equivalent OpenGL calls. |
Type | Description |
---|---|
boolean |
true if WebGL is supported |