@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / createGLTFLoader
Function: createGLTFLoader() ​
ts
function createGLTFLoader(): GLTFLoader;Defined in: utils/gltfLoader.ts:20
The one GLTFLoader setup for every model and clip the engine loads.
- Draco (
KHR_draco_mesh_compression): decoder files resolved per loader, so asetDracoDecoderPath()override made after module load still applies. - meshopt (
EXT_meshopt_compression): what the editor's model optimiser writes (gltf-transform + meshoptimizer, the pipeline the Akofena characters shipped with). The decoder carries its wasm inline, so there is no path to configure.
Quantized meshes (KHR_mesh_quantization) and WebP textures (EXT_texture_webp) need no decoder: GLTFLoader reads them natively.
Returns ​
GLTFLoader

