The God rays effect creates light beams that appear to emanate from a bright source, similar to sunlight breaking through clouds or light shafts in a dusty room.
Warning
This effect is performance-intensive.
How it works
God rays works by sampling along rays that extend from a defined light source position. The effect accumulates brightness along these rays, creating the appearance of light beams or shafts. The sampling process uses a decay factor to make the rays fade with distance from the source.
Use cases
- Creating sunlight beams through clouds or windows
- Adding dramatic lighting effects to bright objects
Controllers
| Name | Type | Description | Range |
|---|---|---|---|
| x | Number | Horizontal position of the light source | -1-1 |
| y | Number | Vertical position of the light source | -1-1 |
| Decay multiplier | Number | Controls how quickly rays fade with distance | 0-1 |
| Density | Number | Controls the visibility of the rays | 0-1 |
| Weight | Number | Controls the brightness of the rays | 0-1 |
| Sample count | Number | Number of samples along each ray | 1-100 |
| Godrays alpha | Number | Overall opacity of the rays | 0-3 |
| Godrays saturation | Number | Color saturation of the rays | 0+ |
| Godrays threshold | Number | Brightness threshold for ray generation | 0-1 |
| Ignore dark colors | Boolean | Only generate rays from bright areas | - |
| Render input on top | Boolean | Show the original image on top of the rays | - |