Class: GLTFLoader

THREE.GLTFLoader()

new GLTFLoader()

A loader for glTF 2.0 resources.

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.
Source:
See:

Methods

(static) load(gltf)

Loads the coffeemat model asynchronously.

This method needs to be implemented by all concrete loaders. It holds the logic for loading the asset from the backend.

Parameters:
Name Type Description
gltf string file name.
Source:
See:

(static) loadAsync(gltf)

Loads the plane model asynchronously.

This method is equivalent to .load, but returns a Promise.

onLoad is handled by Promise.resolve and onError is handled by Promise.reject.
Parameters:
Name Type Description
gltf string file name.
Source:
See: