⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

enum LightingMode

This determines what form scene lighting takes: all of it can fold into the ambient probe, or the dominant directional light can be separated out from it. This shapes lighting derived from an environment: both the world source’s estimates, and what Lighting.SetEnvironment derives from its cubemap. Changing the mode re-delivers the scene’s most recent full lighting in the new shape, replacing Ambient and MainLight.

Enum Values

   
Ambient All light folds into the Ambient probe. This is the default. MainLight still reports the dominant directional light, but as information only: its energy remains inside Ambient, so it suits things like shadow direction, not additional shading.
MainLight The dominant directional light is separated out into MainLight, and Ambient carries only the remainder. This is for applications that render that light themselves, such as for shadow casting, since otherwise its energy is counted twice.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!