Game Development Reference
In-Depth Information
From an artistic point of view, the importance of ambient light lies in the general feeling it
gives to the player. For example, lava environments use warm light colors such as orange
and red, while cold environments use blue. Green ambient color is used to give the feeling
of a humid environment. Illustration 8 shows how changing the color of ambient light
affects the scene.
Illustration 8: Effect of ambient light on the scene
The second type of lights is Directional Light , which can exist once per scene. Directional
light represents the major light source that has the largest effect outdoors. Therefore, it can re-
present the sun in day scenes, or the full moon in night scenes. Directional light, as the name
suggest, has a specific emitting direction, unlike the ambient light. It has also other prop-
erties such as Intensity . Let's now add a directional light to the scene and adjust its prop-
erties.
The directional light affects all areas of the scene equally. Therefore, it does not matter
where it is positioned in the space, or what its scale is. However, altering the rotation of the
directional light will change the its emitting angle. For example, setting the rotation to (90,
0, 0) will make the light emit vertically from above; just like the noon sun. To make the
effect of the directional light easily visible in our scene, it is better to set the rotation of the
directional light object to another value, such as (50, -45, 0). Unity draws short beams in
Search WWH ::




Custom Search