I have two different buffers (QBuffer), one containing vertex coordinates and second one containing vertex normals. In some cases they are organized the same so I can use one index buffer, but is it possible to use 2 different index buffers if data is organized somehow different? One index buffer for vertex coordinates and second index buffer for normals. Maybe even third buffer for UV coordinates.
Reason: plane or triangle has same amount of vertices and normals so one index buffer should do the job, but basic cube with 8 vertices has 24 normals. Every vertex has 3 different normals for each face it is part of, so in this case I would need second index buffer for normals.
I would like to do something like
custom_geo.addAttribute(vtx_pos_attribute) // vertex coordinates
custom_geo.addAttribute(vtx_pos_index_attribute) // index buffer for vertex coordinates
custom_geo.addAttribute(vtx_normal_attribute) // normals
custom_geo.addAttribute(vtx_normal_index_attribute) // index buffer for normals
but I think that my second index attribute just overrides previous one. Anyone has any idea how to fix this? Maybe this is not fixable, and only one index buffer is supported?