extendsLoaderBase
Babylon.js loader for GLTF and GLB tile content. Loads a buffer into a Babylon.js scene and applies an optional adjustment transform for coordinate-system correction.
Properties
scene: Scene
The Babylon.js scene assets are loaded into.
adjustmentTransform: Matrix
Transform applied after loading to correct coordinate system orientation.
Methods
new GLTFLoader(
// The Babylon.js scene to load assets into.
scene: Scene
)async parse(
// The raw GLTF or GLB file data.
buffer: ArrayBuffer,
// URL used for resolving relative resources.
url: string,
// File extension, either `'gltf'` or `'glb'`.
extension: string
): Promise<{scene: TransformNode, container: AssetContainer, metadata: (Object|null)}>Inherited
From LoaderBase
- Properties