Scattering
The atmosphere rendering is based on interpolation between several LUTs (Look-Up Textures) describing different states of the sky during the day.
The environment scattering of the scene can be adjusted in the Environment tab of the Rendering Settings or programmatically by using the Render class.
The built-in WorldLight dynamic environment cubemap automatically generates lighting and reflections for all objects in the scene. The result depends on the position of the Sun and Moon. It acts similarly to the infinitely large environment probe, but works faster and doesn't require placing addition object to the scene.
Sun and Moon
The WorldLight Scattering option provides the following lighting types:
- None — render the atmosphere as if there were no global lights, that is, there will be no sky color gradient in any direction.
- Sun — render the atmosphere in accordance with the Sun's lighting.
- Moon — render the atmosphere in accordance with the Moon's lighting.
There is also a new Disable angle setting for LightWorld defining a critical angle above the horizon, where the light source is still enabled.