Skip to main content

skinned_geom_entry

Function skinned_geom_entry 

Source
pub fn skinned_geom_entry(
    obj: &SkinnedDrawObject,
    texture_count: u32,
) -> RtGeomEntry
Expand description

Build the geometry-table entry for one skinned object. The skinned BLAS is baked from the posed (model-space) deformed buffer with absolute u16 indices, so base_vertex is 0 and the model matrix brings the hit to world space. The skinned flag is OR’d into normal_index so the trace fetches from the deformed / u16 buffers. Albedo / normal resolve through the shared pool by the object’s texture_slot / normal_map_slot, so skinned hits shade textured like static ones (the flag bit lives above any valid pool index).