Bubba-3D
0.9.0
Awesome game engine!
|
Struct for maintaining information of how a bone affects a vertex. More...
#include <BoneInfluenceOnVertex.h>
Public Member Functions | |
void | addBoneData (int boneId, float weight) |
Public Attributes | |
uint | ids [MAX_NUM_BONES] |
float | weights [MAX_NUM_BONES] |
Struct for maintaining information of how a bone affects a vertex.
A vertex can be affected by at most
and each bone affects the vertex by a certain weight. The sum of all weights must equal 1.0.
Usage:
Definition at line 37 of file BoneInfluenceOnVertex.h.
void BoneInfluenceOnVertex::addBoneData | ( | int | boneId, |
float | weight | ||
) |
Adds bone data to the next free bone slot
Definition at line 30 of file BoneInfluenceOnVertex.cpp.