packVertices method

Uint8List packVertices()

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),
    colors: Float32List.fromList(_colors),
  );
}