concinnity_core/render/decal/mod.rs
1//! Backend-agnostic decal support. Owns the per-decal model / inverse-model
2//! matrix math the projected-decal pass needs at runtime, the `DecalRecord` the
3//! backends consume, and the `DecalSet` slot table they drive the pass from.
4//! Decals are stamped onto the scene depth buffer by drawing a unit-box volume
5//! per decal: the fragment shader reconstructs the world-space point of each
6//! rasterised pixel from depth and tests whether it lies inside the box.
7
8mod record;
9mod set;
10
11pub use record::{DecalRecord, build_decal_records, decal_model_matrix, invert_decal_model};
12pub use set::{AtCapacity, DecalSet, RemoveError, VisibleDecal};