Skip to content

Instantly share code, notes, and snippets.

@eladg
Created February 8, 2017 01:07
Show Gist options
  • Save eladg/681cc1e609e55357860215ede9639a45 to your computer and use it in GitHub Desktop.
Save eladg/681cc1e609e55357860215ede9639a45 to your computer and use it in GitHub Desktop.
var canvas = document.getElementById('heatmap-canvas');
var gl = canvas.getContext('webgl');
var debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
var vendor = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL);
var renderer = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
console.log(vendor);
console.log(renderer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment