Skip to main content

build_sprite_model_with_materials

Function build_sprite_model_with_materials 

Source
pub fn build_sprite_model_with_materials(
    kv6: &Kv6,
    material_map: &[(Rgb, u8)],
) -> SpriteModel
Expand description

Build the DDA volume from a KV6, classifying each voxel into a per-voxel material id by colour (TV.3 mixed models) via material_map ((rgb, material_id) pairs; see material_for_color). An empty map produces a model with no per-voxel materials (identical to build_sprite_model).

ยงPanics

As build_sprite_model.