Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

river.wgsl

Import path

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>