Optimum ordering for packed vertex arrays on iPhone
Posted
by Pestilence
on Stack Overflow
See other posts from Stack Overflow
or by Pestilence
Published on 2009-12-10T23:50:38Z
Indexed on
2010/06/01
10:43 UTC
Read the original article
Hit count: 239
Is there an optimum packing format for vertex arrays on the iPhone hardware? My textured (triangle) arrays are ordered:
- Vertex (x, y, z)
- Vertex Normal (x, y, z)
- Texture Coordinates (u, v)
This is the way I've always done it. Should the UVs come before the normals? I'm not sure if it matters. I'd assume that the texturing & lighting units would have a preference, but I can't find anything about it. I certainly can't detect a difference.
© Stack Overflow or respective owner