Skip to main content

evaluate_water_wave_and_foam

Function evaluate_water_wave_and_foam 

pub fn evaluate_water_wave_and_foam(
    pos_xy: [f32; 2],
    time_sec: f32,
    water_depth_m: f32,
    wind_dir: [f32; 2],
    wave_amp_m: f32,
    view_cos_theta: f32,
) -> WaterSurfaceSample
Expand description

Evaluates 4-octave Gerstner trochoidal water displacement, normal, Schlick Fresnel, and shore foam.