Skip to content

God Rays

Brief Description

Average the image over a path defined by an accumulated transform. This can be used to create crepuscular rays (also called God rays) by setting the scale and center parameters: scale governs the length of rays, and center should be set to the Sun or light position (which may be outside of the image). This is also useful to apply long shadows to elements with an alpha channel (such as Text). This can also be used to create directional blur using a fixed number of samples (as opposed to Directional Blur, which uses an adaptive sampling method).

Controls

Parameter / Script Name Type Default Function
Enabled / enabled Boolean On
Red / process_red Boolean On Enable the red channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0
Green / process_green Boolean On Enable the green channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0
Blue / process_blue Boolean On Enable the blue channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0
Alpha / process_alpha Boolean On Enable the alpha channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0
Position / center Float 2D 0, 0
Scale / scale Float 2D 1, 1
Anchor Point / center_offset Float 2D 0, 0
Rotation / rotate Float 0
Skew / skew Float 2D 0, 0
Skew Order / skew_order Choice XY
- XY
- YX
Invert Transform / invert Boolean Off
Amount / amount Float 1
Centered / centered Boolean Off
From Color / from_color Color 1, 1, 1, 1
To Color / to_color Color 1, 1, 1, 1
Gamma / gamma Color 1, 1, 1, 1
Steps / steps Float 5 Higher means more samples and more quality, at the expense of a slower render
Output Mode / output_mode Choice Accumulate The maximum intensity is used instead of the average
- Accumulate: The average intensity along the accumulation vector is used
- Minimum: The minimum intensity along the accumulation vector is used
- Maximum: The maximum intensity along the accumulation vector is used
Color Ramp Mode / interp_mode Choice Linear (Average Alpha)
- Gamma Ramp
- Linear (Average Alpha)
- Linear (Stack Alpha)
Crop To Composition Format / crop_source_to_comp Boolean On Useful to increase performances when doing large blurs of the size of the composition if you don't care that the intensities outside the comp get properly blurred
Mask / mask Image -
Mix / mix_with_source Float 1 Dissolves between the original image at 0 and the image with the effect applied at 1