GLTF 2.0 file loader.
Signature:
export default class GLTFLoader
// Load a GLTF Model to scene
Modelo.View.GLTFLoader.load("./scene.gltf", viewer.getResourceManager(), viewer.getMaterialManager(), 'person').then(function(person) {
viewer.getScene().addPawn(person, false);
});
Method | Description |
---|---|
load(url, resourceManager, materialManager, name) | load GLTF model and generate a correspond pawn |