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.

water_bindings.wgsl

Import path

Bindings

material

#
@group(#{MATERIAL_BIND_GROUP})
@binding(100)
var<uniform> material: WaterMaterial

Structures

WaterMaterial

#
struct WaterMaterial {
deep_color: vec4<f32> ,
shallow_color: vec4<f32> ,
edge_color: vec4<f32> ,
coord_offset: vec2<f32> ,
coord_scale: vec2<f32> ,
amplitude: f32 ,
clarity: f32 ,
edge_scale: f32 ,
}