Skip to main content

alpha2_shaders/transitions/
shapes.rs

1//! Bodies of the built-in transitions in the "Shapes" catalog group.
2
3/// Box opening from the center or a corner, or closing onto it, transition body.
4pub const BOX: &str = include_str!("../../shaders/runtime/transitions/box.wgsl");
5/// Checkerboard wipe transition body.
6pub const CHESSBOARD: &str = include_str!("../../shaders/runtime/transitions/chessboard.wgsl");
7/// Bow-tie wipe with an adjustable tip transition body.
8pub const BOW_TIE: &str = include_str!("../../shaders/runtime/transitions/bow-tie.wgsl");
9/// Horizontal bow-tie wipe transition body.
10pub const BOW_TIE_HORIZONTAL: &str =
11    include_str!("../../shaders/runtime/transitions/bow-tie-horizontal.wgsl");
12/// Vertical bow-tie wipe transition body.
13pub const BOW_TIE_VERTICAL: &str =
14    include_str!("../../shaders/runtime/transitions/bow-tie-vertical.wgsl");
15/// Voronoi shards flying away transition body.
16pub const FRAGMENT: &str = include_str!("../../shaders/runtime/transitions/fragment.wgsl");
17/// Flower-shaped iris transition body.
18pub const POLAR_FUNCTION: &str =
19    include_str!("../../shaders/runtime/transitions/polar-function.wgsl");
20/// Box of a background color growing and shrinking transition body.
21pub const RECTANGLE: &str = include_str!("../../shaders/runtime/transitions/rectangle.wgsl");
22/// Box crop through a background color transition body.
23pub const RECTANGLE_CROP: &str =
24    include_str!("../../shaders/runtime/transitions/rectangle-crop.wgsl");
25/// Bordered star wipe transition body.
26pub const STAR_WIPE: &str = include_str!("../../shaders/runtime/transitions/star-wipe.wgsl");
27/// Iris wipe through one of several shapes transition body.
28pub const SHAPE_WIPE: &str = include_str!("../../shaders/runtime/transitions/shape-wipe.wgsl");