concinnity-core 0.19.24

Runtime vocabulary for the Concinnity engine: GPU layouts, ECS components, registry, CPU kernels
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Level of detail: baking the alternate index lists a mesh is drawn from, and
//! picking between them per draw.
//!
//! [`decimate_by_qem`] collapses LOD0's index list down to a triangle budget
//! while leaving its vertex set untouched, so a level is an extra index list
//! rather than a second mesh. [`pick_lod_slice`] is the draw-time counterpart
//! every backend runs per object, per frame.

mod decimate;
mod instances;
mod select;

pub use decimate::{decimate_by_qem, default_distance_for_level, target_tri_count_for_level};
pub use instances::{any_cluster_has_lod, for_each_instance_lod};
pub use select::{
    bounds_finite, camera_distance, instance_camera_distance, pick_lod_level, pick_lod_slice,
    skinned_camera_distance,
};