Expand description
Reusable shader assets for the alpha2 render pipeline.
shaders/build/*.weslare complete modules, flattened to WGSL bybuild.rs.shaders/runtime/**/*.wgslare effect bodies, not valid on their own:alpha2-renderprepends a preamble generated from each effect’s parameter schema at runtime.
Constants§
- ADVANCED_
MOSAIC - Center-anchored growing mosaic transition body.
- ALPHA_
ADJUST - Built-in alpha levels body.
- ANGULAR
- Angular sweep transition body.
- BLACK_
AND_ WHITE - Built-in black-and-white channel mixer body.
- BLOCK_
DISSOLVE - Per-block random dissolve transition body.
- BOOK_
FLIP - Book page turn transition body.
- BOUNCE
- Picture dropping away with bounces and a contact shadow transition body.
- BOW_TIE
- Bow-tie wipe with an adjustable tip transition body.
- BOW_
TIE_ HORIZONTAL - Horizontal bow-tie wipe transition body.
- BOW_
TIE_ VERTICAL - Vertical bow-tie wipe transition body.
- BOX
- Box opening from the center or a corner, or closing onto it, transition body.
- BULGE
- Built-in bulge body.
- BURN
- Hot flash cross-fade transition body.
- BURN_
NOISE - Noise burn-away transition body.
- BUTTERFLY_
WAVE_ SCRAWLER - Chromatic butterfly-wave transition body.
- CANVAS_
PRESENT_ WGSL - Full-screen triangle drawing a rendered frame onto a browser canvas.
- CHANNEL_
MIXER - Built-in channel mixer body.
- CHESSBOARD
- Checkerboard wipe transition body.
- CHROMA_
KEY_ BODY - Author body for the built-in chroma-key effect.
- CIRCLE
- Circle-through-background transition body.
- CIRCLE_
CROP - Aspect-correct circular crop transition body.
- CIRCLE_
OPEN - Circular opening or closing transition body.
- COLOR_
CONTROLS - Built-in exposure, contrast, saturation, temperature, and tint body.
- COLOR_
ISOLATE - Built-in color isolate (one hue kept) body.
- COLOR_
PHASE - Per-channel phased color transition body.
- COLOUR_
DISTANCE - Color-distance reveal transition body.
- COMPOSITE_
WGSL - Transform and blend one premultiplied RGBA layer over a backdrop.
- CORNER_
PIN - Built-in corner pin body.
- COVER
- Incoming picture sliding over the outgoing one transition body.
- CRAZY_
PARAMETRIC_ FUN - Parametric-curve swirl transition body.
- CROP
- Built-in crop body.
- CROSSHATCH
- Scratchy radial reveal transition body.
- CROSS_
WARP - Cross-warp transition body.
- CRT
- Built-in crt body: a curved screen with scanlines and an aperture mask.
- CUBE
- Rotating cube transition body, with a floor reflection.
- DEFOCUS_
BLUR - Defocus-blur cross-fade transition body.
- DIRECTIONAL
- Directional slide transition body.
- DIRECTIONAL_
EASING - Eased directional push transition body.
- DIRECTIONAL_
SCALED - Directional push that shrinks both pictures mid-way transition body.
- DIRECTIONAL_
WARP - Directional warp transition body.
- DIRECTIONAL_
WIPE - Soft directional wipe transition body.
- DISPLACEMENT_
MAP - Built-in displacement map body.
- DOORWAY
- Doors opening onto the incoming picture transition body.
- DREAMY
- Dreamy vertical-warp transition body.
- DREAMY_
ZOOM - Rotating zoom through a white flash transition body.
- DROP_
ZONE_ FLICKER - Flickering block glitch transition body.
- DUOTONE
- Built-in two-color duotone body.
- EDGE
- Edge-detect flash transition body.
- EDGE_
DETECT - Built-in edge-detect body: Sobel gradients.
- EFFECT_
HELPERS - Color, noise and coordinate helpers shared by the built-in effect bodies.
- EMBOSS
- Built-in emboss body: relief from a luminance difference.
- EXPANDED_
EFFECT - Body of a public effect the render graph expands into internal passes.
- FADE
- Cross-fade transition body.
- FADE_
COLOR - Fade-through-color transition body.
- FADE_
GRAYSCALE - Fade-through-grayscale transition body.
- FILL
- Built-in color fill body.
- FILM_
BURN - Film burn and light leak transition body.
- FILM_
GRAIN - Built-in procedural film-grain body.
- FLY_EYE
- Compound-eye lens transition body.
- FOCUS_
COMBINE - Tilt-shift’s last pass: the source and two blurs mixed by the distance from a band.
- FOLD
- Squash push transition body.
- FRAGMENT
- Voronoi shards flying away transition body.
- FULLSCREEN_
TEXTURE_ QUAD_ WGSL - Full-screen triangle copying a premultiplied-alpha texel.
- GAUSSIAN_
BLUR - Author body for one axis pass of the built-in Gaussian blur cascade.
- GLITCH
- Row jumps and channel splits transition body.
- GLITCH_
DISPLACE - Color-driven displacement glitch transition body.
- GLITCH_
EFFECT - Built-in glitch effect body: rows of blocks jumping sideways over time.
- GLOW_
COMBINE - Glow’s last pass: the source with its blurred bloom added.
- GLOW_
THRESHOLD - Glow’s first pass: the straight color above its threshold.
- GL_
TRANSITION_ ENTRY - The entry point and samplers that run a gl-transitions port in its bottom-left uv.
- GRADIENT_
MAP - Built-in three-color gradient map body.
- GRADIENT_
WIPE - Wipe along a procedural gradient transition body.
- GRID_
FLIP - Grid of flipping tiles transition body.
- HALFTONE
- Built-in halftone body: a rotated grid of dots.
- HEART
- Heart-shaped reveal transition body.
- HEXAGONALIZE
- Hexagonal pixelation transition body.
- HORIZONTAL_
CLOSE - Barn doors closing horizontally transition body.
- HORIZONTAL_
OPEN - Barn doors opening horizontally transition body.
- HSV_
FADE - Cross-fade through hue, saturation and value transition body.
- HUE_
SATURATION - Built-in hue, saturation, and lightness body.
- INVERT
- Built-in invert body.
- KALEIDOSCOPE
- Kaleidoscope cross-fade transition body.
- KALEIDOSCOPE_
EFFECT - Built-in kaleidoscope body.
- LEFT_
RIGHT - Slide in from the right over a receding picture transition body.
- LENS_
BLUR - Built-in disc (bokeh) blur body.
- LENS_
DISTORTION - Built-in lens distortion body.
- LETTERBOX
- Built-in letterbox body: opaque bars around a window of a given aspect.
- LEVELS
- Built-in levels body.
- LIFT_
GAMMA_ GAIN - Built-in lift, gamma, and gain body.
- LIGHT_
LEAK - Built-in light-leak body: drifting blobs of light screened over the picture.
- LINEAR_
BLUR - Box-blur cross-fade transition body.
- LUMA_
BURN - Luma-threshold burn transition body.
- LUMA_
KEY - Built-in luma-key body.
- LUMINANCE_
MELT - Luminance melt transition body.
- LUT_
3D_ BODY - Author body for the built-in resource-backed 3D LUT effect.
- MATTE_
CHOKER - Built-in matte erode and dilate body.
- MIRROR
- Built-in mirror body.
- MORPH
- Color-driven morph transition body.
- MOSAIC_
TILES - Zoom over a wall of turned tiles transition body.
- MULTIPLY_
BLEND - Cross-fade through the two pictures’ product transition body.
- OFFSET
- Built-in offset body.
- OIL_
PAINT - Built-in oil-paint body: a Kuwahara filter, its quadrants weighted.
- OLD_
TV_ LOST_ SIGNAL - Lost TV signal tracking lines transition body.
- OUTLINE
- Built-in outline body: an outer stroke from ring taps.
- OVEREXPOSURE
- Overexposed flash cross-fade transition body.
- PAGE_
PEEL - Page curling away transition body.
- PARAMETRIC_
GLITCH - Color-driven spiral glitch transition body.
- PERLIN
- Value-noise dissolve transition body.
- PINWHEEL
- Rotating pinwheel transition body.
- PIXELATE_
EFFECT - Built-in pixelation body.
- PIXELIZE
- Pixelated cross-fade transition body.
- POLAR_
COORDINATES - Built-in polar coordinates body.
- POLAR_
FUNCTION - Flower-shaped iris transition body.
- POLKA_
DOTS_ CURTAIN - Polka-dot curtain transition body.
- POSTERIZE
- Built-in posterize body.
- POWER_
KALEIDO - Spinning kaleidoscope zoom transition body.
- RADIAL
- Radial sweep transition body.
- RADIAL_
BLUR - Built-in zoom and spin blur body.
- RANDOM_
NOISE - Per-pixel random dissolve transition body.
- RANDOM_
SQUARES - Random-squares dissolve transition body.
- READBACK_
PACK_ WGSL - GPU quantization from float intermediates into an RGBA8 readback texture.
- RECTANGLE
- Box of a background color growing and shrinking transition body.
- RECTANGLE_
CROP - Box crop through a background color transition body.
- REVOLVE
- Spin-zoom with motion blur transition body.
- RGBA_
PRESENT_ WGSL - GPU contain/rotation/premultiplication for browser-imported RGBA frames.
- RGB_
SPLIT - Built-in rgb-split body: red and blue sampled apart.
- RGB_
TO_ YUV420_ WGSL - GPU conversion from premultiplied RGB intermediates into planar YUV420.
- RIPPLE
- Radial ripple transition body.
- RIPPLE_
EFFECT - Built-in ripple body.
- ROLLS
- Picture rolling away around a corner transition body.
- ROTATE
- Spinning, tiled cross-fade transition body.
- ROTATE_
SCALE_ FADE - Spin and scale through the frame’s edge transition body.
- ROTATE_
SCALE_ VANISH - Spin and shrink into the next picture transition body.
- SCALE_
IN - Zoom-in cross-fade transition body.
- SCREEN_
MELT - Columns melting down the screen transition body.
- SEPIA
- Built-in sepia body.
- SET_
MATTE - Built-in body keeping the source where its
matteinput covers it. - SHADOW_
COMBINE - Drop shadow’s last pass: the source over its softened shadow.
- SHADOW_
OFFSET - Drop shadow’s first pass: the source’s alpha moved, in the shadow color.
- SHAKE
- Built-in shake body.
- SHAPE_
WIPE - Iris wipe through one of several shapes transition body.
- SHARPEN
- Built-in sharpening body.
- SIMPLE_
FLIP - Flat card flip transition body.
- SIMPLE_
ZOOM - Center zoom transition body.
- SIMPLE_
ZOOM_ OUT - Zoom-out reveal transition body.
- SLIDES
- Scaling slide from an edge, a corner or the centre transition body.
- SOLARIZE
- Built-in solarize body.
- SPILL_
SUPPRESS - Built-in spill-suppression body.
- SPLIT_
SLIDE_ IN_ HORIZONTAL - Two halves sliding in horizontally transition body.
- SPLIT_
SLIDE_ IN_ OUT_ HORIZONTAL - Split horizontal push transition body.
- SPLIT_
SLIDE_ IN_ OUT_ VERTICAL - Split vertical push transition body.
- SPLIT_
SLIDE_ IN_ VERTICAL - Two halves sliding in vertically transition body.
- SPLIT_
SLIDE_ OUT_ HORIZONTAL - Two halves sliding out horizontally transition body.
- SPLIT_
SLIDE_ OUT_ VERTICAL - Two halves sliding out vertically transition body.
- SQUARES_
WIRE - Directional grid-of-squares wipe transition body.
- SQUEEZE
- Vertical squeeze transition body.
- STAR_
WIPE - Bordered star wipe transition body.
- STATIC_
FADE - Cut through cells of static transition body.
- STATIC_
WIPE - Wipe behind a band of static transition body.
- STRIP_
DATAMOSH_ GLITCH - Datamosh strips and tears transition body.
- SURFACE_
BLUR - Built-in edge-preserving (bilateral) blur body.
- SWAP
- Two cards swapping places transition body.
- SWIRL
- Swirl cross-fade transition body.
- SWIRL_
EFFECT - Built-in swirl body.
- THRESHOLD
- Built-in black-and-white threshold body.
- TILE
- Built-in tile body.
- TILES_
WAVE - Diagonal wave of flipping tiles transition body.
- TOP_
BOTTOM - Slide in vertically over a receding picture transition body.
- TRANSITION_
HELPERS - Alpha, boundary, hash and noise helpers shared by the transition bodies.
- TURBULENT_
DISPLACE - Built-in turbulent displace body.
- TV_
STATIC - Cut through full-frame TV static transition body.
- UNCOVER
- Outgoing picture sliding off the incoming one transition body.
- UNDULATING_
BURN_ OUT - Wavy burning ring transition body.
- UNSHARP_
COMBINE - Unsharp mask’s last pass: the source pushed away from its blur.
- VERTICAL_
CLOSE - Barn doors closing vertically transition body.
- VERTICAL_
OPEN - Barn doors opening vertically transition body.
- VHS
- Built-in vhs body: wobbling rows, a tracking band, chroma bleed and grain.
- VIBRANCE
- Built-in vibrance body.
- VIGNETTE
- Built-in vignette body.
- WATER_
DROP - Water-drop ripple transition body.
- WAVE_
WARP - Built-in wave warp body.
- WHIP_
PAN - Motion-blurred push transition body.
- WIND
- Noisy wind wipe transition body.
- WINDOW_
BLINDS - Alternating window-blind transition body.
- WINDOW_
SLICE - Sliced-window transition body.
- WIPE_
DOWN - Top-to-bottom hard wipe transition body.
- WIPE_
LEFT - Right-to-left hard wipe transition body.
- WIPE_
RIGHT - Left-to-right hard wipe transition body.
- WIPE_UP
- Bottom-to-top hard wipe transition body.
- X_
AXIS_ TRANSLATION - Sideways shift over a cross-fade transition body.
- YUV16_
TO_ LINEAR_ WGSL YUV_TO_LINEAR_WGSLfor 16-bit planes uploaded as unsigned integers, filtered in-shader.- YUV_
REPACK_ WGSL - Sample-for-sample copy of decoded 8-bit 4:2:0 planes into NV12 targets.
- YUV_
TO_ LINEAR_ WGSL - Limited/full-range BT.601/709/2020-NCL YUV plane conversion into linear RGB.
- ZOOM_
BLUR - Radial zoom-blur cross-fade transition body.
- ZOOM_
IN_ CIRCLES - Concentric ring zoom transition body.
- ZOOM_
IN_ OUT - Zoom-through cross-fade transition body.
- ZOOM_
LEFT_ WIPE - Zoom punch, then a leftward wipe, transition body.
- ZOOM_
RIGHT_ WIPE - Zoom punch, then a rightward wipe, transition body.