packVertices method
Packs the accumulated vertices into the interleaved layout.
Pure and free of GPU resources; build uses it, and it can be exercised directly without a render context.
Implementation
Uint8List packVertices() {
return InterleavedLayoutAdapter.packUnskinned(
positions: Float32List.fromList(_positions),
vertexCount: vertexCount,
normals: _resolveNormals(),
texCoords: Float32List.fromList(_texCoords),
texCoords1: Float32List.fromList(_texCoords1),
colors: Float32List.fromList(_colors),
tangents: Float32List.fromList(_tangents),
);
}