Skip to content

Loaders

GLTFPrimitive ​

ts
type GLTFPrimitive = object;

Defined in: packages/wtc-gl/src/loaders/gltf/types.ts:127

One drawable part of a glTF mesh: its attributes, indices and material.

Properties ​

attributes ​

ts
attributes: Record<string, number>;

Defined in: packages/wtc-gl/src/loaders/gltf/types.ts:129

Accessor indices by attribute name, such as POSITION or TEXCOORD_0.


indices? ​

ts
indices?: number;

Defined in: packages/wtc-gl/src/loaders/gltf/types.ts:131

The accessor index of the vertex indices.


material? ​

ts
material?: number;

Defined in: packages/wtc-gl/src/loaders/gltf/types.ts:133

The index of the material.


mode? ​

ts
mode?: number;

Defined in: packages/wtc-gl/src/loaders/gltf/types.ts:135

The draw mode, as a GL enum value. Absent for triangles.