// Instantiate a loader
var loader = new v3d.GLTFLoader();
// Load a glTF resource
loader.load('models/gltf/duck/duck.gltf', function(gltf) {
scene.add(gltf.scene);
gltf.animations; // Array<v3d.AnimationClip>
gltf.scene; // v3d.Scene
gltf.scenes; // Array<v3d.Scene>
gltf.cameras; // Array<v3d.Camera>
});
webgl_loader_gltf
For more info on how to obtain the source code of this module see this page.