Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.

Constants

RIVER_WAVELENGTHS

#
const RIVER_WAVELENGTHS: vec3<f32> = vec3(13.0, 5.5, 2.3)

RIVER_BASE_AMPLITUDES

#
const RIVER_BASE_AMPLITUDES: vec3<f32> = vec3(0.16, 0.085, 0.04)

Functions

river_analytic_displacement

#
fn river_analytic_displacement (
world_xz: vec2<f32>,
flow_sample: vec4<f32>,
time: f32
) -> vec3<f32>
Contents