VertexAttributeType
Types of vertex attributes used in rendering.
| Type | Name | Interface Description |
|---|---|---|
| Enum | BiNormal | • Function: Represents the binormal attribute of a vertex. |
| Enum | Color | • Function: Represents the color attribute of a vertex. |
| Enum | Indices | • Function: Represents the indices attribute of a vertex, typically used for bone indices in skinning. |
| Enum | Normal | • Function: Represents the normal attribute of a vertex. |
| Enum | NormalOffset | • Function: Represents an offset to the normal attribute of a vertex. |
| Enum | Position | • Function: Represents the position attribute of a vertex. |
| Enum | PositionOffset | • Function: Represents an offset to the position attribute of a vertex. |
| Enum | Tangent | • Function: Represents the tangent attribute of a vertex. |
| Enum | TangentOffset | • Function: Represents an offset to the tangent attribute of a vertex. |
| Enum | TexCoord0 | • Function: Represents the first texture coordinate attribute of a vertex. |
| Enum | TexCoord1 | • Function: Represents the second texture coordinate attribute of a vertex. |
| Enum | TexCoord2 | • Function: Represents the third texture coordinate attribute of a vertex. |
| Enum | TexCoord3 | • Function: Represents the fourth texture coordinate attribute of a vertex. |
| Enum | TexCoord4 | • Function: Represents the fifth texture coordinate attribute of a vertex. |
| Enum | TexCoord5 | • Function: Represents the sixth texture coordinate attribute of a vertex. |
| Enum | TexCoord6 | • Function: Represents the seventh texture coordinate attribute of a vertex. |
| Enum | TexCoord7 | • Function: Represents the eighth texture coordinate attribute of a vertex. |
| Enum | Unknown | • Function: Represents an unknown or undefined vertex attribute type. |
| Enum | UserDefine0 | • Function: Historical name for the first user-defined vertex attribute. |
| Enum | UserDefine1 | • Function: Historical name for the second user-defined vertex attribute. |
| Enum | Weight | • 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) {
}
}