WasmGPU.gltf¶
Summary¶
WasmGPU.gltf is the engine's glTF loading, decoding, and import facade. It can load a document and its external resources, decode GLB containers and accessors, and import supported glTF content into WasmGPU scenes, meshes, materials, textures, cameras, lights, skins, and animations.
Syntax¶
Available APIs¶
- gltf.load loads a glTF document and its resources.
- gltf.import imports an already loaded document.
- gltf.loadAndImport performs both steps.
- gltf.parseGLB decodes a binary GLB container.
- gltf.readAccessor and typed variants expose accessor data.
The package also exports standalone URI helpers such as resolveUri; they are not members of wgpu.gltf.