On my website, I have incorporated THREE.js scenes and graphic objects. It is common knowledge that THREE.js makes use of WebGL.
To ensure compatibility with WebGL, I am considering using Modernizr to check the user's browser. If the browser does not support WebGL, I plan to display a message alerting the user.
When configuring Modernizr to test for specific browser features, there are two options that align with my objective:
WebGL: Detects the presence of WebGL in the browser.
WebGL Extensions: Checks for support for OpenGL extensions within WebGL. If the WebGL extensions API is supported, it will expose the available extensions as subproperties.
In order for THREE.js to function properly, should I test for both WebGL Extensions and WebGL, or is testing for WebGL alone sufficient?