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
/// Default maximum path bounce depth for `PathTraceIntegrator`.
pub const RT_DEFAULT_MAX_BOUNCES: u32 = 8;

/// Default maximum recursion depth for `WhittedIntegrator`.
pub const RT_DEFAULT_WHITTED_DEPTH: u32 = 6;

/// Default HDR luminance clamp suppressing extreme Monte Carlo fireflies.
pub const RT_DEFAULT_FIREFLY_CLAMP: f32 = 20.0;

/// Sentinel linear depth value written into G-buffers for sky/background misses.
pub const RT_SKY_DEPTH: f32 = 1.0e5;

/// Default bounce depth at which Russian roulette path termination begins.
pub(crate) const RT_DEFAULT_RR_START_BOUNCE: u32 = 3;

/// Upper cap on Russian roulette survival probability preserving finite path lengths.
pub(crate) const RT_RR_MAX_SURVIVAL: f32 = 0.95;

/// Lower floor on Russian roulette survival probability preventing extreme weight variance.
pub(crate) const RT_RR_MIN_SURVIVAL: f32 = 0.05;

/// Ray origin surface offset preventing shadow acne and self-intersection.
pub(crate) const RT_SURFACE_BIAS: f32 = 1.0e-3;

/// Minimum GGX alpha preventing division by zero on smooth specular lobes.
pub(crate) const RT_MIN_ALPHA: f32 = 1.0e-3;

/// Minimum PDF threshold for MIS weighting and BSDF division guards.
pub(crate) const RT_MIN_PDF: f32 = 1.0e-6;

/// Default multi-sample soft shadow count for `WhittedIntegrator`.
pub(crate) const RT_DEFAULT_WHITTED_SHADOW_SAMPLES: u32 = 4;

/// Default hemisphere occlusion ray count for `RtaoIntegrator`.
pub(crate) const RT_DEFAULT_AO_SAMPLES: u32 = 8;

/// Default occlusion query distance in meters for `RtaoIntegrator`.
pub(crate) const RT_DEFAULT_AO_RADIUS: f32 = 2.0;

/// PCG32 LCG multiplier constant.
pub(crate) const RT_PCG_MULT: u64 = 6_364_136_223_846_793_005;

/// PCG32 default increment stream.
pub(crate) const RT_PCG_INC: u64 = 1_442_695_040_888_963_407;