packChannels
packChannels(
semantics):object
Defined in: asset/meshFormat.ts:91
Byte size of one vertex for these channels, laid out in the order given.
Rounded up to 4 so every channel starts aligned: WebGL rejects a float attribute at an unaligned offset, and a colour packed between two of them is exactly how that happens.
Parameters
Section titled “Parameters”semantics
Section titled “semantics”object[]
Returns
Section titled “Returns”object
channels
Section titled “channels”channels:
MeshChannelDesc[]
vertexStride
Section titled “vertexStride”vertexStride:
number