Skip to main content

Editor.Assets.VertexAttribute

Enum

Used witih Editor.Assets.FaceMesh

Index

Example

const attrs = [
{ name: 'Position', value: Editor.Assets.VertexAttribute.Position },
{ name: 'Normal', value: Editor.Assets.VertexAttribute.Normal },
{ name: 'Tangent', value: Editor.Assets.VertexAttribute.Tangent },
{ name: 'Color', value: Editor.Assets.VertexAttribute.Color },
{ name: 'Texcoord0', value: Editor.Assets.VertexAttribute.Texcoord0 },
{ name: 'Texcoord1', value: Editor.Assets.VertexAttribute.Texcoord1 },
{ name: 'Texcoord2', value: Editor.Assets.VertexAttribute.Texcoord2 },
{ name: 'Texcoord3', value: Editor.Assets.VertexAttribute.Texcoord3 },
{ name: 'BoneData', value: Editor.Assets.VertexAttribute.BoneData },
];

for (const attr of attrs) {
console.log(`VertexAttribute.${attr.name} = ${attr.value}`);
}

Enumeration Members

BoneData

BoneData: number

Skeletal animation bone indices and weights.


Color

Color: number

Per-vertex color data.


Normal

Normal: number

Surface normal vector for lighting calculations.


Position

Position: number

Vertex position coordinates in 3D space.


Tangent

Tangent: number

Tangent vector for normal mapping.


Texcoord0

Texcoord0: number

Primary texture coordinate set.


Texcoord1

Texcoord1: number

Secondary texture coordinate set.


Texcoord2

Texcoord2: number

Tertiary texture coordinate set.


Texcoord3

Texcoord3: number

Quaternary texture coordinate set.