Game Development Reference
In-Depth Information
Figure 9.13
View of the town
square from the
other side showing
the hallway building
with cubes rescaled
to create an exterior
Directional lights in most 3D programs act like sun and moon lights in scenes. They
create an infinite ray of light that casts in one direction. Their actual placement in a scene
is largely irrelevant with the exception of rotation. However, it helps for the sake of refer-
ence, or if you plan to show its halo, to place them above your scene.
1. Let's make this a night scene, so you will tweak the settings to create a night-like
atmosphere. In the light's Inspector view settings, turn the color down to a dim
gray-blue, as shown in Figure 9.14. Also change the intensity to 0.2.
2. Open the Render settings, found in Unity's Edit menu. Switch on the Fog setting
and change the Fog Density setting to 0.02. Also change the fog color to a very dark
blue and the ambient light to a very dark gray/almost black. Tweak these settings
and the settings on the directional light until you get a result you are happy with
(Figure 9.15).
Figure 9.14
Changing settings
on the directional
light
 
Search WWH ::




Custom Search