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_post_process
0.20.0
0.17.0
0.17.1
0.17.2
0.17.3
0.18.0
0.18.1
0.19.0
0.19.1
›
motion_blur.wesl
Save
Bindings
screen_texture
#
@
group
(
0
)
@
binding
(
0
)
var
screen_texture:
texture_2d
<
f32
>
@
group
(
0
)
@
binding
(
0
)
var
screen_texture:
texture_2d
<
f32
>
motion_vectors
#
@
group
(
0
)
@
binding
(
1
)
var
motion_vectors:
texture_multisampled_2d
<
f32
>
@
group
(
0
)
@
binding
(
1
)
var
motion_vectors:
texture_2d
<
f32
>
depth
#
@
group
(
0
)
@
binding
(
2
)
var
depth:
texture_multisampled_2d
<
f32
>
@
group
(
0
)
@
binding
(
2
)
var
depth:
texture_2d
<
f32
>
texture_sampler
#
@
group
(
0
)
@
binding
(
3
)
var
texture_sampler:
sampler
settings
#
@
group
(
0
)
@
binding
(
4
)
var
<
uniform
>
settings:
MotionBlur
globals
#
@
group
(
0
)
@
binding
(
5
)
var
<
uniform
>
globals:
Globals
Structures
MotionBlur
#
struct
MotionBlur
{
shutter_angle:
f32
,
samples:
u32
,
@
if
(
SIXTEEN_BYTE_ALIGNMENT
)
_webgl2_padding:
vec2
<
f32
>
,
}
Functions
fragment
#
@fragment
Calculates the final color of each pixel on the screen
fn
fragment
(
@
if
(
MULTISAMPLED
)
@
builtin
(
sample_index
)
sample_index:
u32
,
in:
FullscreenVertexOutput
)
->
@
location
(
0
)
vec4
<
f32
>
Contents
Bindings
screen_texture
motion_vectors
depth
texture_sampler
settings
globals
Structures
MotionBlur
Functions
fragment