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

NameTypeDescriptionRange
xNumberHorizontal position of the light source-1-1
yNumberVertical position of the light source-1-1
Decay multiplierNumberControls how quickly rays fade with distance0-1
DensityNumberControls the visibility of the rays0-1
WeightNumberControls the brightness of the rays0-1
Sample countNumberNumber of samples along each ray1-100
Godrays alphaNumberOverall opacity of the rays0-3
Godrays saturationNumberColor saturation of the rays0+
Godrays thresholdNumberBrightness threshold for ray generation0-1
Ignore dark colorsBooleanOnly generate rays from bright areas-
Render input on topBooleanShow the original image on top of the rays-