Method GL.GLSLUtils.VertexBuffer()->add_attribute()
- Method
add_attribute
voidadd_attribute(stringname,inttype,boolnormalize,intsize)- Description
Add a generic attribute named
name, of the typetype(eg, GL_FLOAT),normalizedor not of sizesize.As an example add_vec2(
name) is an alias for add_attribute(name, GL_FLOAT, GL_FALSE, 2 )