Пример #1
0
 public void WriteSkinnedVertex(SkinnedVertex v)
 {
     _stream.WriteShort4N(v.Position);
     _stream.WriteShort2N(v.Texcoord);
     _stream.WriteUByte4N(v.Tangent);
     _stream.WriteUByte4(v.BlendIndices);
     _stream.WriteUByte4N(new Vector4(v.BlendWeights));
 }
Пример #2
0
 public void WriteSkinnedVertex(SkinnedVertex v)
 {
     _stream.WriteFloat3(v.Position.XYZ);
     _stream.WriteFloat2(v.Texcoord);
     _stream.WriteFloat3(v.Normal);
     _stream.WriteFloat3(v.Tangent.XYZ);
     _stream.WriteFloat3(v.Binormal);
     _stream.WriteUByte4(v.BlendIndices);
     _stream.WriteUByte4N(new Vector4(v.BlendWeights));
 }