Skip to content
On this page

Interface: MeshPrimitiveProps

WebSG.MeshPrimitiveProps

MeshPrimitiveProps is an interface for defining properties of a mesh primitive.

Table of contents

Properties

Properties

attributes

attributes: Object

Type declaration

NameType
COLOR_0undefined | Accessor
JOINTS_0undefined | Accessor
NORMALundefined | Accessor
POSITIONundefined | Accessor
TANGENTundefined | Accessor
TEXCOORD_0undefined | Accessor
TEXCOORD_1undefined | Accessor
WEIGHTS_0undefined | Accessor

Defined in

websg.d.ts:528


indices

Optional indices: Accessor

Defined in

websg.d.ts:526


material

Optional material: Material

Defined in

websg.d.ts:527


mode

Optional mode: MeshPrimitiveMode

Defined in

websg.d.ts:525