Skip to content

Instantly share code, notes, and snippets.

@Lunanne
Created March 6, 2013 18:45
Show Gist options
  • Select an option

  • Save Lunanne/5101897 to your computer and use it in GitHub Desktop.

Select an option

Save Lunanne/5101897 to your computer and use it in GitHub Desktop.
vertex class
class Vertex
{
union {struct {float x, y, z ;}; float pos[3];};
union {struct {float nx, ny, nz ;}; float normal[3];};
union {struct {float s, t ;}; float texPos[2];};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment