VertexAttributeDesc
Describes the attributes of a vertex in a mesh.
| Type | Name | Interface Description |
|---|---|---|
| Variables | attribute: VertexAttributeType | • Function: The vertex attribute type. |
| Variables | componentCount: number | • Function: The number of components of the attribute. |
| Variables | name: string | • Function: The name of the vertex attribute. This should match the attribute name expected by the shader or mesh consumer. |
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use VertexAttributeDesc here
}
onUpdate(deltaTime: number) {
}
}