A loader for glTF
(GL Transmission Format) is an
open format specification
for efficient delivery and loading of 3D content. Assets may be provided either in JSON (.gltf)
or binary (.glb) format. External files store textures (.jpg, .png, ...) and additional binary
data (.bin). A glTF asset may deliver one or more scenes, including meshes, materials,
textures, skins, skeletons, morph targets, animations, lights, and/or cameras.
— Will be called when load completes. The argument will be the loaded JSON response returned from parse
— Will be called while load progresses. The argument will be the XMLHttpRequest instance, that contains .total
— Will be called when load errors.
Begin loading from url and call the callback function with the parsed response content.