Back home 🏡 WGSL Spec Bevy WGSL Functions

motion_blur.wgsl

Bindings

Name Group Binding index Binding type Type Shader Def
screen_texture # 0 0 texture_2d<f32> 🟢 MULTISAMPLED
motion_vectors # 0 1 texture_multisampled_2d<f32> 🟢 MULTISAMPLED
depth # 0 2 texture_depth_multisampled_2d 🟢 MULTISAMPLED
screen_texture # 0 0 texture_2d<f32> 🔴 MULTISAMPLED
motion_vectors # 0 1 texture_2d<f32> 🔴 MULTISAMPLED
depth # 0 2 texture_depth_2d 🔴 MULTISAMPLED
texture_sampler # 0 3 sampler
settings # 0 4 <uniform> MotionBlur
globals # 0 5 <uniform> Globals

Structures

MotionBlur

#
Name Type Shader Def
shutter_angle f32
samples u32
_webgl2_padding vec2<f32> 🟢 SIXTEEN_BYTE_ALIGNMENT

Functions

fragment

#
@fragment
fn fragment(sample_index: u32, in: FullscreenVertexOutput) -> @location(0) vec4<f32>
Parameter Type
sample_index u32
in FullscreenVertexOutput
Returns: @location(0) vec4<f32>