Bevy Shader Explorer
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.
☾
Packages
›
bevy-aqua-core
0.1.3
›
river.wgsl
Copy import path
Save
Constants
RIVER_WAVELENGTHS
#
Copy import statement
const
RIVER_WAVELENGTHS:
vec3
<
f32
>
=
vec3(13.0, 5.5, 2.3)
RIVER_BASE_AMPLITUDES
#
Copy import statement
const
RIVER_BASE_AMPLITUDES:
vec3
<
f32
>
=
vec3(0.16, 0.085, 0.04)
Functions
river_analytic_displacement
#
Copy import statement
Used by 3 shaders
bevy-aqua-core 0.1.3 — deform.wgsl
bevy-aqua-motion 0.1.3 — motion_prepass.wgsl
bevy-aqua-query 0.1.3 — wave_query.wgsl
fn
river_analytic_displacement
(
world_xz:
vec2
<
f32
>,
flow_sample:
vec4
<
f32
>,
time:
f32
)
->
vec3
<
f32
>
Contents
Constants
RIVER_WAVELENGTHS
RIVER_BASE_AMPLITUDES
Functions
river_analytic_displacement