Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1.     public unsafe struct VertexBoneData
  2.     {
  3.         public Vector3 Position;
  4.         public Vector3 Normal;
  5.         public Vector2 TexCoord;
  6.         public fixed float BoneIDs[Bone.MaxBoneCount];
  7.         public fixed float BoneWeights[Bone.MaxBoneCount];
  8.  
  9.         public float GetBoneID(int i)
  10.         {
  11.            
  12.             {
  13.                 return BoneIDs[i];
  14.             }
  15.         }
  16.  
  17.         public void SetBoneID(int i, float value)
  18.         {
  19.             {
  20.                 BoneIDs[i] = value;
  21.             }
  22.         }
  23.  
  24.         public float GetBoneWeight(int i)
  25.         {
  26.            
  27.             {
  28.                 return BoneWeights[i];
  29.             }
  30.         }
  31.  
  32.         public void SetBoneWeight(int i, float value)
  33.         {
  34.            
  35.             {
  36.                 BoneWeights[i] = value;
  37.             }
  38.         }
  39.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement