Primitive

Geometry to be rendered with the given material.

Constructors

this
this(int material, int indices, int mode)
Undocumented in source.

Members

Variables

attributes
int[string] attributes;

REQUIRED. A plain JSON object, where each key corresponds to a mesh attribute semantic and each value is the index of the accessor containing attribute’s data.

indices
int indices;

The index of the accessor that contains the vertex indices.

material
int material;

The index of the material to apply to this primitive when rendering.

mode
int mode;

The topology type of primitives to render. One of TINYGLTF_MODE_***

targets
int[string][] targets;

An array of morph targets. Each target is an associative array with attributes in ["POSITION, "NORMAL", "TANGENT"] pointing to their corresponding accessors.

Meta