React Usage
Vanilla JavaScript Usage
Parameters
Background color in hex format.
Color overlay blended with the rays in hex format.
Array of up to 5 ray colors in hex format. Supports alpha channel.
The number of rays. Higher values create more rays. Range: 0 to 1.
The length of the rays. Higher values create more spots and shorter rays. Range: 0 to 1.
Visibility and strength of the rays. Range: 0 to 1.
Size of the circular glow shape in the center. Range: 0 to 1.
Brightness and intensity of the central glow. Range: 0 to 1.
Power of glow effect. 0 uses alpha blending, 1 uses additive blending. Range: 0 to 1.
Animation speed multiplier. Set to 0 to pause animation.
Specific frame to display when speed is 0.
Common Sizing Parameters
Overall zoom level of the graphics. Range: 0.01 to 4.
Rotation angle in degrees. Range: 0 to 360.
How to fit the shader into the canvas dimensions.
Horizontal offset of the graphics center. Range: -1 to 1.
Vertical offset of the graphics center. Range: -1 to 1.
Presets
The God Rays shader comes with several built-in presets:- Default: Purple and blue rays with bright center
- Warp: Pink, orange, and white with higher density
- Linear: White rays with additive bloom
- Ether: Blue ethereal glow with low density
