Skip to content

Instantly share code, notes, and snippets.

@roxlu
Created January 28, 2012 19:18
Show Gist options
  • Select an option

  • Save roxlu/1695480 to your computer and use it in GitHub Desktop.

Select an option

Save roxlu/1695480 to your computer and use it in GitHub Desktop.
Vertex Types, Position, Texture, Normal, Binormal, Tangent
/*
struct VertexP : public Vertex { };
struct VertexPT : public Vertex { };
struct VertexPN : public Vertex { };
struct VertexPNC : public Vertex { };
struct VertexPTN : public Vertex { };
struct VertexPTNC : public Vertex { };
struct VertexPTNT : public Vertex { // with tangent. };
struct VertexPTNTB : public Vertex { // can be used for normal mapping
};
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment