Function isWebGLSupported

  • returns true if the device supports WebGL

    Parameters

    • Optionaloptions: {
          failIfMajorPerformanceCaveat: undefined | boolean;
      }

      context creation options

      • failIfMajorPerformanceCaveat: undefined | boolean

        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.

    Returns boolean

    true if WebGL is supported

    device