LoadFileFromGithub
by Lamik
JavaScript
// To load file
// https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/VC/glTF-Embedded/VC.gltf
// When page open click on "Download" button and copy url of page which open
async function load() {
let file = await(await fetch('https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/VC/glTF-Embedded/VC.gltf')).json();
console.log({f: file});
}
load();