Skip to main content

alpha2_shaders/effects/
stylize.rs

1//! Bodies of the built-in effects in the "Stylize" catalog group.
2
3/// Built-in vignette body.
4pub const VIGNETTE: &str = include_str!("../../shaders/runtime/effects/vignette.wgsl");
5/// Glow's first pass: the straight color above its threshold.
6pub const GLOW_THRESHOLD: &str = include_str!("../../shaders/runtime/effects/glow-threshold.wgsl");
7/// Glow's last pass: the source with its blurred bloom added.
8pub const GLOW_COMBINE: &str = include_str!("../../shaders/runtime/effects/glow-combine.wgsl");
9/// Built-in procedural film-grain body.
10pub const FILM_GRAIN: &str = include_str!("../../shaders/runtime/effects/film-grain.wgsl");
11/// Built-in rgb-split body: red and blue sampled apart.
12pub const RGB_SPLIT: &str = include_str!("../../shaders/runtime/effects/rgb-split.wgsl");
13/// Built-in glitch effect body: rows of blocks jumping sideways over time.
14pub const GLITCH_EFFECT: &str = include_str!("../../shaders/runtime/effects/glitch.wgsl");
15/// Built-in crt body: a curved screen with scanlines and an aperture mask.
16pub const CRT: &str = include_str!("../../shaders/runtime/effects/crt.wgsl");
17/// Built-in vhs body: wobbling rows, a tracking band, chroma bleed and grain.
18pub const VHS: &str = include_str!("../../shaders/runtime/effects/vhs.wgsl");
19/// Built-in halftone body: a rotated grid of dots.
20pub const HALFTONE: &str = include_str!("../../shaders/runtime/effects/halftone.wgsl");
21/// Built-in emboss body: relief from a luminance difference.
22pub const EMBOSS: &str = include_str!("../../shaders/runtime/effects/emboss.wgsl");
23/// Built-in edge-detect body: Sobel gradients.
24pub const EDGE_DETECT: &str = include_str!("../../shaders/runtime/effects/edge-detect.wgsl");
25/// Drop shadow's first pass: the source's alpha moved, in the shadow color.
26pub const SHADOW_OFFSET: &str = include_str!("../../shaders/runtime/effects/shadow-offset.wgsl");
27/// Drop shadow's last pass: the source over its softened shadow.
28pub const SHADOW_COMBINE: &str = include_str!("../../shaders/runtime/effects/shadow-combine.wgsl");
29/// Built-in outline body: an outer stroke from ring taps.
30pub const OUTLINE: &str = include_str!("../../shaders/runtime/effects/outline.wgsl");
31/// Built-in light-leak body: drifting blobs of light screened over the picture.
32pub const LIGHT_LEAK: &str = include_str!("../../shaders/runtime/effects/light-leak.wgsl");
33/// Built-in letterbox body: opaque bars around a window of a given aspect.
34pub const LETTERBOX: &str = include_str!("../../shaders/runtime/effects/letterbox.wgsl");
35/// Built-in oil-paint body: a Kuwahara filter, its quadrants weighted.
36pub const OIL_PAINT: &str = include_str!("../../shaders/runtime/effects/oil-paint.wgsl");