NAME
vrmAccessor — append an array and its accessor
SYNOPSIS
vrmAccessor[g, arr, ctype, type] · vrmAccessor[g, arr, ctype, type, target, minmax]
DESCRIPTION
Rounds the array to 32-bit floats (ctype 5126) or unsigned integers (5125, 5121) with NumericArray, writes its bytes little-endian with ExportByteArray, and records the accessor; with minmax True, the bounds of the rounded values, as glTF requires for positions.
RETURN VALUE
The accessor's index, from 0.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
