|
group2 0.1.0
CSE 125 Group 2
|
Per-vertex bone-influence record — 4 bones per vertex, weighted. More...
#include <RendererTypes.hpp>
Public Attributes | |
| int | boneIndices [4] = {0, 0, 0, 0} |
| Joint indices into the bone palette. | |
| float | boneWeights [4] = {0.0f, 0.0f, 0.0f, 0.0f} |
| Skinning weights (should sum to ~1.0). | |
Per-vertex bone-influence record — 4 bones per vertex, weighted.
Lives parallel to the bind-pose vertex buffer. Uploaded once at rig install time as a second vertex buffer; the shader reads boneIndices and boneWeights as vertex attributes (locations 3 and 4 in the suggested layout — but graphics team owns the final shader, see setSkinnedRig docs for the recommended attribute layout).
Layout (32 bytes, no padding) matches what the legacy pbr_skinned.vert expected. Keep it 32 bytes — changes here require shader updates.
| int BoneInfluence::boneIndices[4] = {0, 0, 0, 0} |
Joint indices into the bone palette.
| float BoneInfluence::boneWeights[4] = {0.0f, 0.0f, 0.0f, 0.0f} |
Skinning weights (should sum to ~1.0).