Skip to content

v0.3.0

Compare
Choose a tag to compare
@bwasty bwasty released this 06 May 17:19
· 7 commits to master since this release

Changed

  • [breaking change] renamed fetchAll to preFetchAll .
  • [breaking change] GltfAsset.bufferViewData now returns a Promise<Uint8Array> instead of a Promise<ArrayBuffer> (to avoid any copies of the binary data - the Uint8Array is a view into the original ArrayBuffer from the network request/dropped file).

Added

  • GltfAsset.accessorData function that is similar to bufferViewData, but also handles sparse accessors and accessors without buffer views.
  • Parameter crossOrigin on ImageData, defaulting to anonymous (fixes loading images from other domains).

Fixed

  • lazy loading of buffers (avoid duplicate requests for the same buffer)