Helper for checking for WebGL support in the current environment.
Results are cached after first call for better performance.
Optional
Whether to fail if there is a major performance caveat
True if WebGL is supported
// Basic WebGL support checkif (isWebGLSupported()) { console.log('WebGL is available');} Copy
// Basic WebGL support checkif (isWebGLSupported()) { console.log('WebGL is available');}
Helper for checking for WebGL support in the current environment.
Results are cached after first call for better performance.