Vertex data split into separate buffers or one one structure?
- by kiba2
Is it better to have all vertex data in one structure like this:
class MyVertex
{
int x,y,z;
int u,v;
int normalx, normaly, normalz;
}
Or to have each component (location, normal, texture coordinates) in separate arrays/buffers? To me it always seemed logical to keep the data grouped together in one structure because…