Animated rays of light radiate outward from a central point, with each color layer independently rotated to build depth. A central glow shape adds a focal bloom, and a bloom/overlay color composites additively over the rays. Great for dramatic backgrounds, logo reveals, and VFX like energy bursts or sun shafts.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paper-design/shaders/llms.txt
Use this file to discover all available pages before exploring further.
Usage
- React
- Vanilla JS
Props
Background color behind the rays.
Overlay color blended additively with the rays when
bloom is greater than 0.Array of up to 5 ray colors. Each color is applied to an independent ray layer.
Number/density of rays. Range:
0 to 1.Length of the rays. Higher values produce shorter, more spot-like rays. Range:
0 to 1.Visibility/brightness of the rays. Range:
0 to 1.Size of the circular glow at the center. Range:
0 to 1.Brightness of the central glow. Range:
0 to 1.Blend between alpha compositing (
0) and additive blending (1) for the ray colors. Range: 0 to 1.Animation speed multiplier. Set to
0 to pause.Static frame position when
speed is 0.Presets
| Name | Description |
|---|---|
Default | Purple and cyan rays from below center |
Warp | Pink and orange rays with blue bloom |
Linear | Subtle white rays from upper right |
Ether | Sparse, spotty blue rays on dark background |
Sizing
This shader usesShaderSizingParams. See Sizing and fit for fit, scale, rotation, offsetX, offsetY, originX, originY, worldWidth, and worldHeight props.