quartz/content/Graphics/01.god-rays.md
Carson Clarke-Magrab 1b1b3508e3 Blog progress
2024-06-12 16:59:26 -04:00

1.2 KiB

draft title tags
false Screen Space God Rays
graphics

While thinking about graphical improvements to 01.far-reaches, I landed on the decision to invest some time into environmental weather effects like rain, snow, clouds, etc. I was deeply inspired by t3ssel8r's video on god rays (and much of his other stuff) and decided to take a crack at it myself. Before we begin let's break this down to understand what we're talking about here starting with god rays.

God Rays

You've seen these before likely both in real life and in video games.

[!caption|center] !crepuscular_rays_real.png "God Rays"

The scientific term for this phenomenon is called crepuscular rays and the term in the graphics programming world is volumetric light scattering. These effects are caused by clouds or other objects and give the impression of "shafts" of light emitting from the sun. Essentially the shadows from the clouds create shadowed and un-shadowed regions of the atmosphere where light is being scattered and the contrast between these regions gives the effect of "shafts" of light emerging from the sun.

Implementation