The JSON part of the asset.
Helper for accessing image data
Fetch the data associated with the accessor. Equivalent to bufferViewData
for most accessors; special cases:
accessor.bufferView
is undefined: create a buffer initialized with zeroes.accessor.sparse
is defined: Copy underlying buffer view and apply values from sparse
.Fetch the data for a buffer view. Pass in the bufferView
property of an
Accessor
.
NOTE: To avoid any unnessary copies, the data is returned as a Uint8Array
instead of an ArrayBuffer
.
Pre-fetches all buffer and image data. Useful to avoid stalls due to lazy loading.
Helper for accessing buffer data