Game Development Reference
In-Depth Information
Figure 2-30.
Lightmapping CMOD
Mode.
In Unity 4.3 there are three lightmapping modes available:
Single Lightmaps
,
Dual Lightmaps
, and
Directional Lightmaps
. Both dual and directional lightmapping
produce two set of lightmaps. Dual lightmapping produces a
Near
map and a
Far
map, and directional lightmapping produces a
Color
map and a
Scale
map.
The usage of these maps varies. The point of both of these modes is to increase
realism, giving you a balance between prebaked lightmaps and per-pixel dynamic
lighting, with effects such as specularity and normal maps. However, for the
implied
realism
of CMOD, we can resort to the “simpler” Single Lightmaps. This mode
produces only one lightmap set, as opposed to multiple. This map (or set of maps)
features
all
the direct and indirect illumination for the scene. No matter where your
camera is in the scene during gameplay, Unity will
always
be applying the lightmap
to static objects. Static objects will not receive Dynamic Illumination.