Skip to main content

skin_to_static

Function skin_to_static 

Source
pub fn skin_to_static(vertices: &[u8], palette: &[Transform]) -> Vec<u8> ⓘ
Expand description

Skin 32-byte ModelSkinLayout vertices (i16x4 position /512, i16x4 texcoords, unorm8x4 normal, 4 unused bytes, unorm8x4 weights, u8x4 bone indices) with a palette into the 24-byte static ModelLayout (position, texcoords, normal, zeroed user data). Used to draw characters in a fixed pose without GPU skinning.