Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created May 8, 2020 12:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
import { SceneLoader } from "@babylonjs/core/Loading/sceneLoader";
import {} from "@babylonjs/loaders/glTF/2.0/glTFLoader";
const ImportModel ={
/**
*
* @param {*} meshName
* @param {*} rootURLPath
* @param {*} sceneFilename
* @param {*} scene
*/
importMeshModel: function(meshName,rootURLPath,sceneFilename,scene){
SceneLoader.ImportMesh(meshName, rootURLPath, sceneFilename, scene,function(result){
});
},
// not work yet
importBabylonFormatModel: function(rootUrl,sceneFilename,engine){
SceneLoader.Load(rootUrl,sceneFilename,engine);
}
};
export {ImportModel};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment