euv-core 0.51.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
/// Keyframe interpolation mode defined by glTF 2.0 animation samplers.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum GltfInterpolationMode {
    /// Constant piecewise hold (`STEP`).
    Step,
    /// Linear or quaternion SLERP interpolation (`LINEAR`).
    #[default]
    Linear,
    /// Hermite cubic spline with `(in_tangent, value, out_tangent)` triplets (`CUBICSPLINE`).
    CubicSpline,
}

/// Target node property driven by a glTF 2.0 animation channel.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum GltfAnimationPath {
    /// Node local `Vec3` translation.
    #[default]
    Translation,
    /// Node local `Quat` rotation `[x, y, z, w]`.
    Rotation,
    /// Node local `Vec3` non-uniform scale.
    Scale,
    /// Node shape-key / morph target weight array.
    MorphWeights,
}

/// Perspective or orthographic projection imported from a glTF 2.0 / Blender camera.
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GltfCameraProjection {
    /// Perspective projection with vertical field of view in radians.
    Perspective {
        /// Vertical field of view in radians.
        yfov_rad: f32,
        /// Optional fixed aspect ratio override.
        aspect_ratio: Option<f32>,
        /// Near clipping plane distance in meters.
        znear: f32,
        /// Optional finite far clipping plane distance (`None` = infinite reverse-Z).
        zfar: Option<f32>,
    },
    /// Orthographic projection with horizontal and vertical half-extents.
    Orthographic {
        /// Horizontal magnification half-width.
        xmag: f32,
        /// Vertical magnification half-height.
        ymag: f32,
        /// Near clipping plane distance.
        znear: f32,
        /// Far clipping plane distance.
        zfar: f32,
    },
}

/// Light emitter classification imported from `KHR_lights_punctual` or Blender area-light extras.
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GltfLightKind {
    /// Infinite directional sun light oriented along node `-Z`.
    Directional,
    /// Omnidirectional point light with optional attenuation cutoff range.
    Point {
        /// Optional maximum influence distance in meters.
        range: Option<f32>,
    },
    /// Conical spotlight oriented along node `-Z`.
    Spot {
        /// Optional maximum influence distance in meters.
        range: Option<f32>,
        /// Inner full-intensity cone half-angle in radians.
        inner_cone_angle: f32,
        /// Outer cutoff cone half-angle in radians.
        outer_cone_angle: f32,
    },
    /// Rectangular Blender area light imported via `extras.euv`.
    Area {
        /// Emitter width in meters.
        width: f32,
        /// Emitter height in meters.
        height: f32,
    },
}