VRMBUFFERVIEW(3VRMWL)Pyon manual · Mochi and Onigiri as VRM 1.0 avatars, in the Wolfram Language (tools/ff_makevrm.nb)VRMBUFFERVIEW(3VRMWL)

NAME

vrmBufferView — append bytes and a bufferView

SYNOPSIS

vrmBufferView[g, bytes] · vrmBufferView[g, bytes, target]

DESCRIPTION

Pads the buffer with zeros to 4 bytes, appends the bytes, and adds a bufferView (target 34962 for vertex data, 34963 for indices). g is the symbol holding the file (the function holds its first argument).

RETURN VALUE

The bufferView's index, from 0.

SEE ALSO

vrmAccessor(3vrmwl), view(3vrm)

SOURCE

tools/ff_makevrm.nb: line 268 of its cells one after another (docs/man/src/ff_makevrm-cells.txt)

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0