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
›
naga_oil
0.16.0
0.22.0
›
shadows.wgsl
Copy import path
Save
Functions
fetch_point_shadow
#
Copy import statement
Used by 2 shaders
bevy_pbr 0.15.0 — pbr_functions.wgsl
naga_oil 0.16.0 — pbr_functions.wgsl
fn
fetch_point_shadow
(
light_id:
u32
,
frag_position:
vec4
<
f32
>,
surface_normal:
vec3
<
f32
>
)
->
f32
fetch_spot_shadow
#
Copy import statement
Used by 2 shaders
bevy_pbr 0.15.0 — pbr_functions.wgsl
naga_oil 0.16.0 — pbr_functions.wgsl
fn
fetch_spot_shadow
(
light_id:
u32
,
frag_position:
vec4
<
f32
>,
surface_normal:
vec3
<
f32
>
)
->
f32
fetch_directional_shadow
#
Copy import statement
Used by 2 shaders
bevy_pbr 0.15.0 — pbr_functions.wgsl
naga_oil 0.16.0 — pbr_functions.wgsl
fn
fetch_directional_shadow
(
light_id:
u32
,
frag_position:
vec4
<
f32
>,
surface_normal:
vec3
<
f32
>
)
->
f32
Contents
Functions
fetch_point_shadow
fetch_spot_shadow
fetch_directional_shadow