|
|
|
|
@ -494,6 +494,7 @@ parseAttributes(memory_arena* arena, shader_program* s, GLContext* gl_ctx)
|
|
|
|
|
GLVertexAttrib* attrib = &s->vertex_attribs[i]; |
|
|
|
|
attrib->data_type = type; |
|
|
|
|
attrib->location = location; |
|
|
|
|
// FIXME: need a helper for attrib->num_components
|
|
|
|
|
attrib->name = arenaCopyCStr(arena, attrib_name, sizeof(attrib_name)); |
|
|
|
|
// TODO: replace POSITION, NORMAL, UV... etc enums in loadGLMesh()
|
|
|
|
|
// with extra logic to detect mesh to shader mapping
|
|
|
|
|
|