name | type | description |
---|---|---|
name | string |
The name of the attribute as defined in the vertex shader. |
size | number |
The number of components in the attribute, i.e. 1 for a float, 2 for a vec2, 3 for a vec3, etc. |
type | GLenum |
The data type of the attribute. Either |
offset | number |
The offset, in bytes, of this attribute data in the vertex array. Equivalent to |
normalized | boolean |
Should the attribute data be normalized? |
enabled | boolean |
You should set this to |
location | number |
You should set this to |