Skip to content

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.

object[]

object

channels: MeshChannelDesc[]

vertexStride: number