Browse Source

add FIXME to create helper for GLVertexAttrib num_components

main
cinnaboot 5 years ago
parent
commit
346fedcf9b
  1. 1
      src/shader.cpp

1
src/shader.cpp

@ -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

Loading…
Cancel
Save