Features:
Breaking changes:
Features:
- Add compression/decompression support for
EXT_meshopt_compression. #314 #323 - Add
reorder()function. #321 - Faster, smaller CLI installation. #281
- Improved
textureResize()API. #282 - Add
node.setMatrix(...). #270 - Parse in-memory Data URIs with
readJSON. #266 - Support
.extrason Root object #339
Breaking changes:
- Remove ao() function and dependencies. #281
Features:
- Add
textureResize()function. #267 - Add
quantizationVolume: 'scene' | 'mesh'option toquantize()and Draco compression. Fixes #257. #272 - Support GLB files without binary data (e.g. just a node graph). #245
- Improve type-checking throughout the library, with TypeScript's strict checks.
- Add API documentation for
@gltf-transform/extensionsand@gltf-transform/functions, with Typedoc v0.20.
Breaking changes:
- Rename
@gltf-transform/libto@gltf-transform/functions. #249 - Move
ao()from@gltf-transform/functionsto the CLI, cutting size and dependencies of the functions package. - I/O
writeJSONoptionisGLB: truechanged toformat: Format.GLB.
Features:
Breaking changes:
- Material extensions now track RGBA channel usage of each texture, allowing improvements in KTX 2.0 support. #221
Features:
- Add 'instance' transform. #169
- Add 'prune' transform. #162
- Add 'resample' transform. #158
- Add 'tangents' transform. #175
- Add 'quantize' transform. #59
- Add
KHR_materials_volumeextension. #161 - Add
EXT_mesh_gpu_instancingextension. #115 - Add
--format={pretty,csv,md}output options for CLIinspectcommand. - Add
--vertex-layout={interleaved,separate}options for CLI output.
Breaking changes:
- Stricter type checking.
- Enum values moved from
GLTF.*to static properties of the relevant class. Primitive enum values are now allowed. - Enable esModuleInterop in TS config.
- 'dedup' transform takes a
propertyTypes: string[]array, rather than boolean flags for each property type. - 'draco' CLI command options renamed (hyphenated) for consistency.
Features:
- Add 'weld' and 'unweld' transforms.
- Add encoding/compression support for
KHR_draco_mesh_compression. - Add KTX and WebP support in utils and 'inspect' function.
- Add
KHR_materials_variantsextension.
Breaking changes:
- Stricter type checking.
- External type definitions are now installed as dependencies.
Features:
- Add 'center' and 'sequence' transforms.
- Add 'bounds' helper.
- Enhance 'partition' transform to support animations.
- Add
KHR_draco_mesh_compressionextension (decode only). - Add
KHR_texture_transformextension. - Add
EXT_texture_webpextension. - Add
KHR_materials_sheenextension.
Breaking changes:
- Merged TextureSampler properties into TextureInfo.
- TextureInfo now extends from ExtensibleProperty.
- Simplified I/O API. Renamed:
- NativeDocument -> JSONDocument
- unpackGLB -> readBinary
- packGLB -> writeBinary
- createDocument -> readJSON
- createNativeDocument -> writeJSON
- unpackGLBToNativeDocument -> binaryToJSON
Features:
- Add world transform API (getWorldTranslation/getWorldRotation/getWorldScale/getWorldMatrix) and getMatrix to Node.
- Add ColorUtils and helper methods to work with colors in hexadecimal and sRGB.
- Add traverse method to Node.
- Simplified Extension API.
- Add Extras API.
CLI:
- Accept textures in
mergecommand.
Breaking changes:
- getExtension/setExtension syntax changed to accept extension names, not constructors. See ExtensibleProperty.
- Scene addNode/removeNode/listNodes are now addChild/removeChild/listChildren, for consistency with Node API.