euv-core 0.56.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
/// Procedural or sampled 2D cookie/gobo projection mask applied to a `RigSpotLight3D` beam.
#[derive(Clone, Debug, Default, PartialEq)]
pub enum SpotCookieMask {
    /// Uniform unobstructed beam (`transmittance = 1.0`).
    #[default]
    None,
    /// Circular/radial window pane grid with horizontal and vertical mullions.
    RadialWindow {
        /// Horizontal pane count across the projected beam.
        panes_x: u32,
        /// Vertical pane count across the projected beam.
        panes_y: u32,
        /// Relative mullion bar thickness in `[0.01, 0.4]`.
        mullion_width: f32,
    },
    /// Slatted Venetian-blinds gobo pattern creating dramatic noir bands.
    VenetianBlinds {
        /// Number of repeating louver slats across the beam.
        slat_count: u32,
        /// Open gap ratio per slat cycle in `[0.05, 0.95]`.
        open_ratio: f32,
        /// Slat rotation angle in radians.
        tilt_rad: f32,
    },
    /// Procedural organic leaf-canopy dappled gobo shadow pattern.
    FoliageCanopy {
        /// Spatial pattern frequency across the projected beam.
        frequency: f32,
        /// Canopy occlusion coverage density in `[0.0, 1.0]`.
        density: f32,
        /// Deterministic seed selecting canopy phase offsets.
        seed: u32,
    },
    /// User-provided 2D grayscale cookie grid bilinearly sampled in `[0.0, 1.0]`.
    CustomGrid {
        /// Grid width in texels.
        width: u32,
        /// Grid height in texels.
        height: u32,
        /// Row-major transmittance values in `[0.0, 1.0]`.
        values: Vec<f32>,
    },
}

/// Physical emitter aperture geometry supported by `RigAreaLight3D` and `LtcAreaLightEvaluator`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum RigAreaLightShape3D {
    /// Rectangular quad emitter (`width x height`).
    #[default]
    Rect,
    /// Elliptical or circular disk emitter (`width x height` diameters).
    Disk,
    /// Linear capsule/tube emitter of length `width` along `right` and diameter `height`.
    Tube,
}

/// Discriminant identifying the source array inside `LightRig3D` for a clustered light entry.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum ClusteredLightKind {
    /// Omnidirectional `RigPointLight3D`.
    #[default]
    Point,
    /// Conical `RigSpotLight3D` with optional cookie projection.
    Spot,
    /// Analytical `RigAreaLight3D` (`Rect`, `Disk`, or `Tube`).
    Area,
}