import * as BABYLON from "@babylonjs/core";
import * as GUI from '@babylonjs/gui';
BABYLON.SceneLoader.ImportMesh(
"",
"https://raw.githubusercontent.com/BabylonJS/MeshesLibrary/master/",
"PBR_Spheres.glb",
scene,
function (meshes) {
scene.createDefaultCameraOrLight(true, true, true);
scene.createDefaultEnvironment();
});
error
index.js:1 BJS - [17:20:51]: Unable to load from https://raw.githubusercontent.com/BabylonJS/MeshesLibrary/master/PBR_Spheres.glb: importMesh of undefined from undefined version: undefined, exporter version: undefinedimportMesh has failed JSON parse
But same code
It is ok .
Why ?