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.

shadows.wgsl

Import path

Functions

fetch_point_shadow

#
fn fetch_point_shadow (
light_id: u32
frag_position: vec4<f32>
surface_normal: vec3<f32>
) -> f32

fetch_spot_shadow

#
fn fetch_spot_shadow (
light_id: u32
frag_position: vec4<f32>
surface_normal: vec3<f32>
) -> f32

fetch_directional_shadow

#
fn fetch_directional_shadow (
light_id: u32
frag_position: vec4<f32>
surface_normal: vec3<f32>
) -> f32