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
//! Backend-agnostic decal support. Owns the per-decal model / inverse-model
//! matrix math the projected-decal pass needs at runtime, the `DecalRecord` the
//! backends consume, and the `DecalSet` slot table they drive the pass from.
//! Decals are stamped onto the scene depth buffer by drawing a unit-box volume
//! per decal: the fragment shader reconstructs the world-space point of each
//! rasterised pixel from depth and tests whether it lies inside the box.

mod record;
mod set;

pub use record::{DecalRecord, build_decal_records, decal_model_matrix, invert_decal_model};
pub use set::{AtCapacity, DecalSet, RemoveError, VisibleDecal};