Skip to main content

VertexAttributeType

Types of vertex attributes used in rendering.

TypeNameInterface Description
EnumBiNormal

Function: Represents the binormal attribute of a vertex.

EnumColor

Function: Represents the color attribute of a vertex.

EnumIndices

Function: Represents the indices attribute of a vertex, typically used for bone indices in skinning.

EnumNormal

Function: Represents the normal attribute of a vertex.

EnumNormalOffset

Function: Represents an offset to the normal attribute of a vertex.

EnumPosition

Function: Represents the position attribute of a vertex.

EnumPositionOffset

Function: Represents an offset to the position attribute of a vertex.

EnumTangent

Function: Represents the tangent attribute of a vertex.

EnumTangentOffset

Function: Represents an offset to the tangent attribute of a vertex.

EnumTexCoord0

Function: Represents the first texture coordinate attribute of a vertex.

EnumTexCoord1

Function: Represents the second texture coordinate attribute of a vertex.

EnumTexCoord2

Function: Represents the third texture coordinate attribute of a vertex.

EnumTexCoord3

Function: Represents the fourth texture coordinate attribute of a vertex.

EnumTexCoord4

Function: Represents the fifth texture coordinate attribute of a vertex.

EnumTexCoord5

Function: Represents the sixth texture coordinate attribute of a vertex.

EnumTexCoord6

Function: Represents the seventh texture coordinate attribute of a vertex.

EnumTexCoord7

Function: Represents the eighth texture coordinate attribute of a vertex.

EnumUnknown

Function: Represents an unknown or undefined vertex attribute type.

EnumUserDefine0

Function: Historical name for the first user-defined vertex attribute.

EnumUserDefine1

Function: Historical name for the second user-defined vertex attribute.

EnumWeight

Function: Represents the weight attribute of a vertex, often used for skinning.

Examples

BiNormal

let value = APJS.VertexAttributeType.BiNormal;

Color

let value = APJS.VertexAttributeType.Color;

Indices

let value = APJS.VertexAttributeType.Indices;

Normal

let value = APJS.VertexAttributeType.Normal;

NormalOffset

let value = APJS.VertexAttributeType.NormalOffset;

Position

let value = APJS.VertexAttributeType.Position;

PositionOffset

let value = APJS.VertexAttributeType.PositionOffset;

Tangent

let value = APJS.VertexAttributeType.Tangent;

TangentOffset

let value = APJS.VertexAttributeType.TangentOffset;

TexCoord0

let value = APJS.VertexAttributeType.TexCoord0;

TexCoord1

let value = APJS.VertexAttributeType.TexCoord1;

TexCoord2

let value = APJS.VertexAttributeType.TexCoord2;

TexCoord3

let value = APJS.VertexAttributeType.TexCoord3;

TexCoord4

let value = APJS.VertexAttributeType.TexCoord4;

TexCoord5

let value = APJS.VertexAttributeType.TexCoord5;

TexCoord6

let value = APJS.VertexAttributeType.TexCoord6;

TexCoord7

let value = APJS.VertexAttributeType.TexCoord7;

Unknown

let value = APJS.VertexAttributeType.Unknown;

UserDefine0

let value = APJS.VertexAttributeType.UserDefine0;

UserDefine1

let value = APJS.VertexAttributeType.UserDefine1;

Weight

let value = APJS.VertexAttributeType.Weight;

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use VertexAttributeType here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies