#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENGINE3D_WORKER_PREFIX: &str = "euv-3d";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENGINE3D_WORKER_MAX_THREADS: usize = 24;
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENGINE3D_WORKER_SPIN_LIMIT: u32 = 3072;
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const ENGINE3D_CALLER_SPIN_LIMIT: u32 = 2048;
pub(crate) const PROBE_ROW_STACK_CAP: usize = 512;
pub(crate) const ENGINE3D_TILE_MAX_PX: usize = 64;
pub(crate) const MLAA_MAX_WALK_STEPS: usize = 8;
pub(crate) const SOFT_SHADOW_RING_16: [(f32, f32); 16] = [
(0.005, 0.004),
(-0.009, 0.007),
(0.004, -0.013),
(0.014, 0.006),
(-0.015, -0.009),
(-0.002, 0.018),
(0.017, -0.011),
(-0.020, 0.005),
(0.009, 0.019),
(0.011, -0.019),
(-0.019, -0.013),
(-0.008, 0.021),
(0.022, 0.002),
(-0.014, -0.018),
(-0.003, -0.022),
(0.016, 0.016),
];
pub(crate) const GI_HEMI_RING_16: [[f32; 3]; 16] = [
[0.38, 0.52, -0.24],
[-0.34, 0.56, 0.28],
[0.24, 0.48, 0.36],
[-0.28, 0.50, -0.34],
[0.44, 0.42, 0.16],
[-0.42, 0.44, -0.18],
[0.14, 0.60, -0.40],
[-0.16, 0.58, 0.42],
[0.36, 0.46, 0.30],
[-0.38, 0.48, -0.28],
[0.26, 0.54, -0.32],
[-0.22, 0.52, 0.38],
[0.46, 0.38, -0.14],
[-0.44, 0.40, 0.16],
[0.18, 0.56, 0.38],
[-0.18, 0.58, -0.36],
];
pub(crate) const GEOM_PARALLEL_MIN_OBJECTS: usize = 48;
pub(crate) const GEOM_PARALLEL_CHUNKS: usize = 8;
pub(crate) const AUTO_EXPOSURE_TARGET_LUMA: f32 = 0.38;
pub(crate) const AUTO_EXPOSURE_MIN: f32 = 0.80;
pub(crate) const AUTO_EXPOSURE_MAX: f32 = 1.38;
pub(crate) const AUTO_EXPOSURE_ADAPT_RATE: f32 = 0.08;
pub(crate) const HALTON_JITTER_8: [(f32, f32); 8] = [
(0.0, 0.0),
(-0.25, 0.166_667),
(0.25, -0.166_667),
(-0.125, -0.333_333),
(0.125, 0.333_333),
(-0.312_5, -0.055_556),
(0.312_5, 0.055_556),
(-0.062_5, 0.277_778),
];
pub(crate) const SKY3D_LUT_W: usize = 160;
pub(crate) const SKY3D_LUT_H: usize = 160;
pub(crate) const ACES3D_LUT_SIZE: usize = 1025;
pub(crate) const ACES3D_LUT_KNEE: f32 = 0.42;
pub(crate) const OCEAN3D_WAVE_SPECTRUM: [[f32; 5]; 5] = [
[0.84, 0.54, 0.24, 0.22, 1.35],
[-0.58, 0.81, 0.42, 0.14, 1.85],
[0.32, -0.95, 0.78, 0.085, 2.45],
[-0.89, -0.45, 1.38, 0.048, 3.10],
[0.65, -0.76, 2.35, 0.026, 3.85],
];