Godrays effect. Ported from medium.com/community-play-3d/god-rays-whats-that-5a67f26aeac2. Which is based on: developer.nvidia.com/gpugems/GPUGems3/gpugems3_ch13.html

Requires a light mask, change the color of the light area of the mask to change the color of the Godrays.

Set light position relative to location withing Sprite or layer (0-1 value.)

See example for usage.

Also try using the effect on a layer instead of a sprite.

For lower quality, but higher performance versions of this effect see:


(Original version is 100 sample, also have 50 sample and 25 sample versions on github.)

Download Stable (2.22 KB)



  • Download count111 total downloads
  • Latest download count 92 downloads of latest version
  • Average download count2 downloads per day average



  • Order by
Want to leave a comment? Login or Register an account!