vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::SkinVertex Struct Reference

One vertex's binding to the rig, in a stream parallel to vertices. More...

#include <mesh_asset.h>

Public Attributes

uint16_t bones [4]
 Indices into the skeleton named by MeshAsset::skeleton.
uint8_t weights [4]
 unorm8 influences, summing to exactly 255.

Detailed Description

One vertex's binding to the rig, in a stream parallel to vertices.

Kept out of Vertex, which would grow 25% for every mesh. 16-bit indices avoid a 255-bone ceiling in the cooked format. Weights sum to exactly 255, so w / 255.0 sums to 1.0 with no renormalise.


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