Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created May 8, 2020 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/4d0743e06ccaa54ed2630cb809188adc to your computer and use it in GitHub Desktop.
Save flushpot1125/4d0743e06ccaa54ed2630cb809188adc to your computer and use it in GitHub Desktop.
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