Skip to content

Instantly share code, notes, and snippets.

View NoxWings's full-sized avatar
🦀

David G. Miguel NoxWings

🦀
View GitHub Profile
@NoxWings
NoxWings / load_spectorjs_in_dev_console.js
Created November 7, 2021 16:29 — forked from De-Panther/load_spectorjs_in_dev_console.js
Code snippet for loading SpectorJS in WebGL page. Copy this code to the development console of a web page with WebGL content. Make sure that you are posting it in the right context(if the canvas is inside an iframe).
var newScript = document.createElement("script");
newScript.onload = function() {
var spector = new SPECTOR.Spector();
spector.displayUI();
};
document.head.appendChild(newScript);
newScript.src = "https://spectorcdn.babylonjs.com/spector.bundle.js";