Expand description
Reusable shader assets for the alpha2 render pipeline.
Shader source lives under shaders/, never inline in Rust, and is split by
how it reaches the GPU:
shaders/build/*.weslare complete modules with their own entry points.build.rsresolves their imports and flattens each one into WGSL at build time, so they are embedded here already compiled.shaders/runtime/**/*.wgslare effect bodies, not modules. They are not valid on their own:alpha2-rendergenerates a per-effect preamble from the effect’s parameter schema and concatenates the body onto it, which is why these cannot be resolved ahead of time.
Constants§
- ANGULAR
- Angular sweep transition body.
- CANVAS_
PRESENT_ WGSL - Full-screen triangle drawing a rendered frame onto a browser canvas.
- 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_
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.
- CROP
- Built-in crop body.
- CROSS_
WARP - Cross-warp transition body.
- DIRECTIONAL
- Directional slide transition body.
- DIRECTIONAL_
WARP - Directional warp transition body.
- DIRECTIONAL_
WIPE - Soft directional wipe transition body.
- DREAMY
- Dreamy vertical-warp transition body.
- 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.
- FILM_
GRAIN - Built-in procedural film-grain 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.
- 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.
- HEART
- Heart-shaped reveal transition body.
- LUT_
3D_ BODY - Author body for the built-in resource-backed 3D LUT effect.
- MIRROR
- Built-in mirror body.
- MORPH
- Color-driven morph transition body.
- PINWHEEL
- Rotating pinwheel transition body.
- PIXELATE_
EFFECT - Built-in pixelation body.
- PIXELIZE
- Pixelated cross-fade transition body.
- POLKA_
DOTS_ CURTAIN - Polka-dot curtain transition body.
- RADIAL
- Radial sweep transition body.
- READBACK_
PACK_ WGSL - GPU quantization from float intermediates into an RGBA8 readback texture.
- RGBA_
PRESENT_ WGSL - GPU contain/rotation/premultiplication for browser-imported RGBA frames.
- RGB_
TO_ YUV420_ WGSL - GPU conversion from premultiplied RGB intermediates into planar YUV420.
- RIPPLE
- Radial ripple transition body.
- SHARPEN
- Built-in sharpening body.
- SIMPLE_
ZOOM - Center zoom transition body.
- SQUEEZE
- Vertical squeeze transition body.
- TRANSITION_
HELPERS - Alpha and boundary helpers shared by the built-in transition bodies, and the entry point that runs them in gl-transitions’ bottom-left uv.
- VIGNETTE
- Built-in vignette 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.
- YUV16_
TO_ LINEAR_ WGSL YUV_TO_LINEAR_WGSLfor 16-bit containers uploaded as unsigned integers, which it filters and normalizes itself.- 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.