# GLTFLoader

class in `3d-tiles-renderer/babylonjs`, extends `LoaderBase`

```js
import { GLTFLoader } from '3d-tiles-renderer/babylonjs';
```

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.

## Constructor

```js
new GLTFLoader( scene: Scene )
```

- `scene`, `Scene`: The Babylon.js scene to load assets into.

## Properties

### .scene: Scene

The Babylon.js scene assets are loaded into.

### .adjustmentTransform: Matrix

Transform applied after loading to correct coordinate system orientation.

## Methods

### .parse

```js
async .parse( buffer: ArrayBuffer, url: string, extension: string ): Promise<{scene: TransformNode, container: AssetContainer, metadata: (Object|null)}>
```

- `buffer`, `ArrayBuffer`: The raw GLTF or GLB file data.
- `url`, `string`: URL used for resolving relative resources.
- `extension`, `string`: File extension, either `'gltf'` or `'glb'`.
