@luma.gl/engine
Version:
3D Engine Components for luma.gl
21 lines (18 loc) • 558 B
text/typescript
// luma.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
import type {TypedArray} from '@math.gl/core';
import type {VertexFormat} from '@luma.gl/core';
/** Holds one geometry */
export type GeometryTable = {
length: number;
schema?: Record<string, VertexFormat>;
attributes: {
POSITION: TypedArray;
NORMAL: TypedArray;
TEXCOORD_0: TypedArray;
[key: string]: TypedArray;
};
indices?: Uint16Array | Uint32Array;
topology?: 'point-list' | 'line-list' | 'line-strip' | 'triangle-list' | 'triangle-strip';
};