GLTFLoader class

GLTF 2.0 file loader.

Signature:

export default class GLTFLoader 

Example

// 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);
});

Methods

MethodDescription
load(url, resourceManager, materialManager, name)load GLTF model and generate a correspond pawn