IGLTFLoader

Loader interface.

Hierarchy

Index

Properties

animationStartMode

animationStartMode: GLTFLoaderAnimationStartMode

Mode that determines what animations will start.

compileMaterials

compileMaterials: boolean

Defines if the loader should compile materials.

compileShadowGenerators

compileShadowGenerators: boolean

Defines if the loader should compile shadow generators.

coordinateSystemMode

coordinateSystemMode: GLTFLoaderCoordinateSystemMode

Mode that determines the coordinate system to use.

importMeshAsync

importMeshAsync: function

Imports meshes from the given data and adds them to the scene.

Type declaration

loadAsync

loadAsync: function

Loads all objects from the given data and adds them to the scene.

Type declaration

onCameraLoadedObservable

onCameraLoadedObservable: Observable<Camera>

Observable raised when the loader creates a camera after parsing the glTF properties of the camera.

onCompleteObservable

onCompleteObservable: Observable<IGLTFLoader>

Observable raised when the asset is completely loaded, immediately before the loader is disposed. For assets with LODs, raised when all of the LODs are complete. For assets without LODs, raised when the model is complete, immediately after the loader resolves the returned promise.

onDisposeObservable

onDisposeObservable: Observable<IGLTFLoader>

Observable raised after the loader is disposed.

onExtensionLoadedObservable

onExtensionLoadedObservable: Observable<IGLTFLoaderExtension>

Observable raised after a loader extension is created. Set additional options for a loader extension in this event.

onMaterialLoadedObservable

onMaterialLoadedObservable: Observable<Material>

Observable raised when the loader creates a material after parsing the glTF properties of the material.

onMeshLoadedObservable

onMeshLoadedObservable: Observable<AbstractMesh>

Observable raised when the loader creates a mesh after parsing the glTF properties of the mesh.

onTextureLoadedObservable

onTextureLoadedObservable: Observable<BaseTexture>

Observable raised when the loader creates a texture after parsing the glTF properties of the texture.

preprocessUrlAsync

preprocessUrlAsync: function

Function called before loading a url referenced by the asset.

Type declaration

    • (url: string): Promise<string>
    • Parameters

      • url: string

      Returns Promise<string>

state

Loader state or null if the loader is not active.

transparencyAsCoverage

transparencyAsCoverage: boolean

Defines if the Alpha blended materials are only applied as coverage. If false, (default) The luminance of each pixel will reduce its opacity to simulate the behaviour of most physical materials. If true, no extra effects are applied to transparent pixels.

useClipPlane

useClipPlane: boolean

Defines if the loader should also compile materials with clip planes.

Methods

dispose

  • dispose(): void

Generated using TypeDoc