This is an introductory description of lightmapping in Unity. For more advanced topics see the in-depth description of lightmapping in Unity
Unity has a fully integrated lightmapper – Beast by Illuminate Labs. This means that Beast will bake lightmaps for your scene based on how your scene is set up within Unity, taking into account meshes, materials, textures and lights. It also means that lightmapping is an integral part of the rendering engine - once your lightmaps are created you don't need to do anything else, they will be automatically picked up by the objects.
Selecting
– from the menu will open the Lightmapping window:Scene and game views will update - your scene is now lightmapped!
Final look of your scene depends a lot on your lighting setup and bake settings. Let's take a look at an example of some basic settings that can improve lighting quality.
This is a basic scene with a couple of cubes and one point light in the centre. The light is casting hard shadows and the effect is quite dull and artificial.
Selecting the light and opening the Shadow Radius and Shadow Samples properties. Setting Shadow Radius to 1.2, Shadow Samples to 100 and re-baking produces soft shadows with wide penumbra - our image already looks much better.
With Unity Pro we can take the scene one step further by enabling Global Illumination and adding a Sky Light. In the Bounces to 1 and the Sky Light Intensity to 0.5. The result is much softer lighting with subtle diffuse interreflection effects (color bleeding from the green and blue cubes) - much nicer and it's still only 3 cubes and a light!
pane we set the number ofFor more information about the various lightmapping-related settings, please refer to the in-depth description of lightmapping in Unity.
Page last updated: 2013-03-07