README
@gltf-transform/extensions
Part of the glTF-Transform project.
- GitHub: https://github.com/donmccurdy/glTF-Transform
- Project Documentation: https://gltf-transform.donmccurdy.com/
- Package Documentation: https://gltf-transform.donmccurdy.com/extensions.html
Installation
Install:
npm install --save @gltf-transform/extensions
Import:
// ES6
import { WebIO } from '@gltf-transform/core';
import { KHRONOS_EXTENSIONS } from '@gltf-transform/extensions';
// CommonJS
const { WebIO } = require('@gltf-transform/core');
const { KHRONOS_EXTENSIONS } = require('@gltf-transform/extensions');
// Register.
const io = new WebIO().registerExtensions(KHRONOS_EXTENSIONS);
const document = await io.read('/model.glb');