gltfx 0.1.0
gltfx: ^0.1.0 copied to clipboard
glTF 2.0 parser for Dart.
gltfx #
glTF 2.0 parser for Dart.
import 'package:gltfx/gltfx.dart';
// Header only (sync, no resource loading)
final header = Gltf.parseHeader(jsonString);
// Full parse (async, resolves external resources)
final doc = await Gltf.parse(jsonString, loader: (uri) => readFile(uri));
// GLB
final doc = Glb.parse(glbBytes);
Extensions #
Supports KHR and EXT extensions including PBR materials (clearcoat, sheen, transmission, volume, IOR, iridescence, specular, anisotropy, emissive strength, diffuse transmission, dispersion, unlit, variants), lights, texture transforms, mesh quantization, meshopt compression, Draco, basis textures, GPU instancing, animations, and more.