use super::*;
#[derive(Clone, Data, Debug)]
pub struct LiquidOpticalRenderer {
#[get(type(copy))]
pub(crate) field_w: usize,
#[get(type(copy))]
pub(crate) field_h: usize,
pub(crate) flow_u: Vec<f32>,
pub(crate) flow_v: Vec<f32>,
pub(crate) foam: Vec<f32>,
pub(crate) wake_tmp: Vec<f32>,
pub(crate) hdr_rgb: Vec<f32>,
pub(crate) bloom_a: Vec<[f32; 3]>,
pub(crate) bloom_b: Vec<[f32; 3]>,
pub(crate) sky_lut: Vec<[f32; 3]>,
pub(crate) refl_lut: Vec<[f32; 3]>,
pub(crate) aces_lut: Vec<u8>,
#[get(type(copy))]
pub(crate) last_sky_lut_time: f32,
#[get(type(copy))]
pub(crate) last_width: u32,
#[get(type(copy))]
pub(crate) last_height: u32,
}
#[derive(Clone, Copy, Data, Debug, Default)]
pub(crate) struct ProjectedBoatTri {
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) sx: [f32; 3],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) sy: [f32; 3],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) depth: [f32; 3],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) local_y: [f32; 3],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) inv_area: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) edge_inv_len: [f32; 3],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) area_sign: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) base_rgb: [f32; 3],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) bbox: [f32; 4],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) facet_kind: u8,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) valid: bool,
}
#[derive(Clone, Copy, Data, Debug)]
pub(crate) struct OceanShadeParams {
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) out_w: usize,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) out_h: usize,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) field_w: usize,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) field_h: usize,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) sim_time: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) wave_agitation: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) horizon_v: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) roll_cos: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) roll_sin: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) sun_dir: [f32; 3],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) boat_screen_x: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) boat_waterline_y: f32,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) boat_bbox: [f32; 4],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) boat_tris: [ProjectedBoatTri; BOAT_TRI_COUNT],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) wave_time_phases: [f32; 8],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) has_active_wake: bool,
}
#[derive(Clone, Copy, Data, Debug)]
pub(crate) struct FluidWakeViews<'a> {
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) flow_u: &'a [f32],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) flow_v: &'a [f32],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) foam: &'a [f32],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) sky_lut: &'a [[f32; 3]],
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) refl_lut: &'a [[f32; 3]],
}