Lighting.MainLight
static SHLight MainLight{ get set }
Description
The scene’s dominant directional light, ideal as a
shadow direction! Environment lighting keeps this derived, and
the direction is always normalized. Check Mode before shading
with it, since in Ambient mode this light’s energy is also
inside the Ambient probe.
A black color means no light. Assignments follow the same rules
as Ambient: applied as-is until the next environment lighting
replaces them. Built-in shaders don’t consume this, it’s for
your own shaders and effects.
Found an issue with these docs, or have some additional questions? Create an Issue on Github!