use super::*;
pub const FLUID_RENDER_MAX_DIM: u32 = 960;
pub const FLUID_RENDER_MIN_DIM: u32 = 160;
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const FLUID_RENDER_MAX_PIXELS: f32 = 840.0 * 520.0;
#[cfg(target_arch = "wasm32")]
pub(crate) const FLUID_RENDER_MAX_PIXELS: f32 = 576.0 * 360.0;
pub(crate) const SKY_LUT_W: usize = 384;
pub(crate) const SKY_LUT_H: usize = 192;
pub(crate) const REFL_LUT_W: usize = 80;
pub(crate) const REFL_LUT_H: usize = 80;
pub(crate) const SKY_LUT_REFRESH_INTERVAL_SECS: f32 = 0.08;
pub(crate) const ACES_LUT_SIZE: usize = 1025;
pub(crate) const ACES_LUT_KNEE: f32 = 0.38;
pub(crate) const FAST_TRIG_INV_HALF_PI: f32 = 2.0 / PI;
pub(crate) const FAST_TRIG_HALF_PI: f32 = FRAC_PI_2;
pub(crate) const FLUID_FIELD_MAX_W: usize = 128;
pub(crate) const FLUID_FIELD_MAX_H: usize = 96;
pub(crate) const FLUID_FIELD_MIN_DIM: usize = 48;
pub(crate) const WATER_FRESNEL_F0: f32 = 0.0204;
pub(crate) const FLUID_RENDER_BAND_ROWS: usize = 16;
pub(crate) const OCEAN_CAMERA_FOCAL: f32 = 1.62;
pub(crate) const OCEAN_CAMERA_HEIGHT_M: f32 = 1.42;
pub(crate) const OCEAN_HORIZON_V: f32 = 0.545;
pub(crate) const OCEAN_SUN_RAW_X: f32 = -0.30;
pub(crate) const OCEAN_SUN_RAW_Y: f32 = 0.132;
pub(crate) const OCEAN_SUN_RAW_Z: f32 = 1.62;
pub(crate) const OCEAN_WAVE_SPECTRUM: [[f32; 5]; 8] = [
[0.18, 0.984, 0.62, 0.230, 0.88],
[-0.36, 0.933, 1.08, 0.160, 1.18],
[0.52, 0.854, 1.88, 0.098, 1.62],
[-0.60, 0.800, 3.10, 0.062, 2.08],
[0.46, 0.888, 5.15, 0.038, 2.62],
[-0.68, 0.733, 8.40, 0.024, 3.18],
[0.74, 0.673, 13.80, 0.015, 3.85],
[-0.76, 0.650, 22.40, 0.0090, 4.65],
];
pub(crate) const BOAT_TRI_COUNT: usize = 16;
pub(crate) const BOAT_VERT_COUNT: usize = 15;
pub(crate) const BOAT_LOCAL_VERTS: [[f32; 3]; BOAT_VERT_COUNT] = [
[-1.50, 0.56, 0.00],
[1.50, 0.60, 0.00],
[-0.86, -0.02, -0.28],
[0.00, -0.02, -0.30],
[0.86, -0.02, -0.28],
[0.00, 0.38, -0.58],
[-0.86, -0.02, 0.28],
[0.00, -0.02, 0.30],
[0.86, -0.02, 0.28],
[0.00, 0.38, 0.58],
[0.02, 1.38, 0.00],
[-0.60, 0.28, 0.00],
[0.60, 0.28, 0.00],
[0.00, 0.24, -0.26],
[0.00, 0.24, 0.26],
];
pub(crate) const BOAT_TRIANGLES: [(usize, usize, usize, u8); BOAT_TRI_COUNT] = [
(11, 13, 10, 2),
(13, 12, 10, 5),
(14, 11, 10, 2),
(12, 14, 10, 5),
(0, 5, 11, 3),
(5, 1, 12, 3),
(0, 11, 9, 3),
(12, 1, 9, 3),
(0, 2, 5, 0),
(2, 3, 5, 1),
(3, 4, 5, 6),
(5, 4, 1, 4),
(6, 0, 9, 0),
(7, 6, 9, 1),
(8, 7, 9, 6),
(1, 8, 9, 4),
];
pub(crate) const OCEAN_BLOOM_THRESHOLD: f32 = 1.35;