Skip to main content

VertexAttributeDefinition

Index

Properties

glType

glType: number

Supported types in webgl 1

location

location: number

Location index in the shader program

name

name: string

string name of the attribute in the shader program, commonly a_nameofmyvariable

normalized

normalized: boolean

Is the attribute normalized between (0-1)

size

size: number

Number of components for a given attribute Must be 1, 2, 3, or 4

For example a vec4 attribute would be 4 floats, so 4