Struct three_d::renderer::object::WaveParameters
source · pub struct WaveParameters {
pub wavelength: f32,
pub amplitude: f32,
pub speed: f32,
pub steepness: f32,
pub direction: Vec2,
}Expand description
A set of parameters that defines one wave of the water surface.
Fields§
§wavelength: f32The distance between each top of the wave.
amplitude: f32The distance from the top or bottom of the wave to the average water height.
speed: f32The speed at which the waves move.
steepness: f32The steepness of the wave, which specifies how pointy the wave top will be.
direction: Vec2The direction of the wave.
Trait Implementations§
source§impl Clone for WaveParameters
impl Clone for WaveParameters
source§fn clone(&self) -> WaveParameters
fn clone(&self) -> WaveParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more