Advertisement
Ember

layouts

May 23rd, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.95 KB | None | 0 0
  1. // Standard 3D Vertex Format - 16 bytes; Position (6/16), Normal (12/16), Texcoord (16/16)
  2. struct Default3D { Half3 Position; Short3 Normal; UShort2 Texcoord; };
  3. // Standard 2D Vertex Format - 8 bytes; Position (4/8), Texcoord (8/8)
  4. struct Default2D { Half2 Position; UShort2 Texcoord; };
  5. // Full Precision 3D Vertex Format - 32 bytes; Position (12/32), Normal (24/32), Texcoord (32/32)
  6. struct Full3D { Float3 Position; Float3 Normal; Float2 Texcoord; };
  7. // Full Precision 2D Vertex Format - 16 bytes; Position (8/16), Texcoord (16/16)
  8. struct Full2D { Float2 Position; Float2 Texcoord; };
  9. // 3D Skinning Vertex Format - 24 bytes
  10. struct Skinned3D : Default3D { UByte4 Indices; UByte4 Weights; };
  11. // 3D Normal-Mapping Vertex Format - 24 bytes
  12. struct Tangent3D { Half3 Position; Short3 Normal; Short4 Tangent; UShort2 Texcoord; };
  13. // 3D Normal-Mapped Skinning Vertex Format - 32 bytes
  14. struct SkinnedTangent3D : Tangent3D { UByte4 Indices; UByte4 Weights; };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement