Install with luarocks: $ luarocks install lua-gltf
local gltf = require("gltf")
local asset = gltf.new("/path/to/file.gltf")
The returned table is identical to a standard glTF asset with the following differences:
asset:IndexOf(object). Keep in mind that these values will begin from 0, as they correspond to the indices in the glTF file.node has the field node.parent:get() method
packed is accepted (defaults to false). If true, the value returned will be the raw string which holds the accessor data. Otherwise, this method returns the values contained in the accessor.