daily pastebin goal
16%
SHARE
TWEET

vertex data format examples

a guest Dec 2nd, 2015 135 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. StreamFormat("standardStream",
  2. {
  3.         [VertexStream(0)] =
  4.         {
  5.                 { Float, 3, Position },
  6.         },
  7.         [VertexStream(1)] =
  8.         {
  9.                 { Float, 3, Normal },
  10.                 { Float, 3, Tangent },
  11.                 { Float, 2, TexCoord, 0 },
  12.         },
  13. })
  14. StreamFormat("coloredStream",
  15. {
  16.         [VertexStream(0)] =
  17.         {
  18.                 { Float, 3, Position },
  19.         },
  20.         [VertexStream(1)] =
  21.         {
  22.                 { Float, 3, Normal },
  23.                 { Float, 3, Tangent },
  24.                 { Float, 2, TexCoord, 0 },
  25.                 { Float, 4, Color, 0, "Vertex_Color" },
  26.         },
  27. })
  28. StreamFormat("colored2Stream",
  29. {
  30.         [VertexStream(0)] =
  31.         {
  32.                 { Float, 3, Position },
  33.         },
  34.         [VertexStream(1)] =
  35.         {
  36.                 { Float, 3, Normal },
  37.                 { Float, 3, Tangent },
  38.                 { Float, 2, TexCoord, 0 },
  39.                 { Float, 4, Color, 0, "Vertex_Color" },
  40.                 { Float, 4, Color, 1, "Vertex_Color_Mat" },
  41.         },
  42. })
  43. StreamFormat("basicPostStream",
  44. {
  45.         [VertexStream(0)] =
  46.         {
  47.                 { Float, 2, Position },
  48.                 { Float, 2, TexCoord },
  49.         },
  50. })
  51. StreamFormat("simpleStream",
  52. {
  53.         [VertexStream(0)] =
  54.         {
  55.                 { Float, 3, Position },
  56.         },
  57.         [VertexStream(1)] =
  58.         {
  59.                 { Float, 3, Normal,   0 },
  60.                 { Float, 2, TexCoord, 0 },
  61.         },
  62. })
  63. StreamFormat("f3position",
  64. {
  65.         [VertexStream(0)] =
  66.         {
  67.                 { Float, 3, Position },
  68.         },
  69. })
  70. StreamFormat("rocket",
  71. {
  72.         [VertexStream(0)] =
  73.         {
  74.                 { Float,         2, Position },
  75.                 { ByteUNorm, 4, Color },
  76.                 { Float,         2, TexCoord },
  77.         },
  78. })
  79. StreamFormat("trails",
  80. {
  81.         [VertexStream(0)] =
  82.         {
  83.                 { Float, 3, Position },
  84.                 { Float, 4, TexCoord },
  85.         },
  86. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top