Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public unsafe struct VertexBoneData
- {
- public Vector3 Position;
- public Vector3 Normal;
- public Vector2 TexCoord;
- public fixed float BoneIDs[Bone.MaxBoneCount];
- public fixed float BoneWeights[Bone.MaxBoneCount];
- public float GetBoneID(int i)
- {
- {
- return BoneIDs[i];
- }
- }
- public void SetBoneID(int i, float value)
- {
- {
- BoneIDs[i] = value;
- }
- }
- public float GetBoneWeight(int i)
- {
- {
- return BoneWeights[i];
- }
- }
- public void SetBoneWeight(int i, float value)
- {
- {
- BoneWeights[i] = value;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement