uupaa.webgldetector.js

Detect WebGL

Usage no npm install needed!

<script type="module">
  import uupaaWebgldetectorJs from 'https://cdn.skypack.dev/uupaa.webgldetector.js';
</script>

README

WebGLDetector.js Build Status

npm

Detect WebGL.

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/WebGLDetector.js"></script>
<script>
WebGLDetector.detect();
WebGLDetector.WEBGL_CONTEXT     // -> "wegbl"
WebGLDetector.WEBGL_VERSION     // -> "WebGL 1.0 (OpenGL ES 2.0 Chromium)"
WebGLDetector.WEBGL_VERNDOR     // -> "WebKit"
WebGLDetector.WEBGL_RENDERER    // -> "WebKit WebGL"
WebGLDetector.WEBGL_SL_VERSION  // -> "WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)"
WebGLDetector.MAX_TEXTURE_SIZE  // -> 16384
</script>