group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
BoneInfluence Struct Reference

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).

Detailed Description

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.

Member Data Documentation

◆ boneIndices

int BoneInfluence::boneIndices[4] = {0, 0, 0, 0}

Joint indices into the bone palette.

◆ boneWeights

float BoneInfluence::boneWeights[4] = {0.0f, 0.0f, 0.0f, 0.0f}

Skinning weights (should sum to ~1.0).


The documentation for this struct was generated from the following file: