Skip to main content

alpha2_shaders/effects/
blur.rs

1//! Bodies of the built-in effects in the "Blur & Sharpen" catalog group.
2
3/// Author body for one axis pass of the built-in Gaussian blur cascade.
4pub const GAUSSIAN_BLUR: &str = include_str!("../../shaders/runtime/effects/gaussian-blur.wgsl");
5/// Built-in sharpening body.
6pub const SHARPEN: &str = include_str!("../../shaders/runtime/effects/sharpen.wgsl");
7/// Built-in zoom and spin blur body.
8pub const RADIAL_BLUR: &str = include_str!("../../shaders/runtime/effects/radial-blur.wgsl");
9/// Built-in disc (bokeh) blur body.
10pub const LENS_BLUR: &str = include_str!("../../shaders/runtime/effects/lens-blur.wgsl");
11/// Built-in edge-preserving (bilateral) blur body.
12pub const SURFACE_BLUR: &str = include_str!("../../shaders/runtime/effects/surface-blur.wgsl");
13/// Unsharp mask's last pass: the source pushed away from its blur.
14pub const UNSHARP_COMBINE: &str =
15    include_str!("../../shaders/runtime/effects/unsharp-combine.wgsl");
16/// Tilt-shift's last pass: the source and two blurs mixed by the distance from a band.
17pub const FOCUS_COMBINE: &str = include_str!("../../shaders/runtime/effects/focus-combine.wgsl");