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_pbr
0.20.0
0.15.0
0.15.1
0.15.2
0.15.3
0.15.4
0.16.0
0.16.1
0.16.2
0.17.0
0.17.1
0.17.2
0.17.3
0.18.0
0.18.1
0.19.0
0.19.1
›
ssr.wesl
Save
Bindings
color_texture
#
@
group
(
2
)
@
binding
(
0
)
var
color_texture:
texture_2d
<
f32
>
color_sampler
#
@
group
(
2
)
@
binding
(
1
)
var
color_sampler:
sampler
stbn_texture
#
@
group
(
2
)
@
binding
(
4
)
var
stbn_texture:
texture_2d_array
<
f32
>
Structures
BrdfSample
#
struct
BrdfSample
{
wi:
vec3
<
f32
>
,
value_over_pdf:
vec3
<
f32
>
,
}
Functions
sample_specular_brdf
#
fn
sample_specular_brdf
(
wo:
vec3
<
f32
>
,
roughness:
f32
,
F0:
vec3
<
f32
>
,
urand:
vec2
<
f32
>
,
N:
vec3
<
f32
>
)
->
BrdfSample
evaluate_ssr
#
fn
evaluate_ssr
(
R_world:
vec3
<
f32
>
,
P_world:
vec3
<
f32
>
,
jitter:
f32
)
->
vec4
<
f32
>
fragment
#
@fragment
Calculates the final color of each pixel on the screen
fn
fragment
(
in:
FullscreenVertexOutput
)
->
@
location
(
0
)
vec4
<
f32
>
Contents
Bindings
color_texture
color_sampler
stbn_texture
Structures
BrdfSample
Functions
sample_specular_brdf
evaluate_ssr
fragment