pub struct WaterParams {
pub deep_color: Color,
pub shallow_color: Color,
pub wave_strength: f32,
pub wave_scale: f32,
pub wave_speed: f32,
pub underwater_color: Color,
pub underwater_density: f32,
pub sun_dir: Vector3,
}Expand description
Tunable look params pushed to the water material each frame (read from the active builder’s water exports; the rest use the shader’s own defaults).
Fields§
§deep_color: Color§shallow_color: Color§wave_strength: f32§wave_scale: f32§wave_speed: f32§underwater_color: Color§underwater_density: f32§sun_dir: Vector3World-space direction pointing TOWARD the sun (found from the scene’s
DirectionalLight3D). Drives the analytic diffuse + specular glint.
Trait Implementations§
Source§impl Clone for WaterParams
impl Clone for WaterParams
Source§fn clone(&self) -> WaterParams
fn clone(&self) -> WaterParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WaterParams
Auto Trait Implementations§
impl Freeze for WaterParams
impl RefUnwindSafe for WaterParams
impl Send for WaterParams
impl Sync for WaterParams
impl Unpin for WaterParams
impl UnsafeUnpin for WaterParams
impl UnwindSafe for WaterParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more