Lighting a simple scene with Lightmaps and Light Probes

Lightmaps are a great alternative to real-time lighting, as they can provide the desired look to an environment without being processor-intensive. There is one downside, though—since there is no way of baking Lightmaps onto the dynamic objects, the lighting of the important elements of the game (such as player characters themselves) can look artificial, failing to match the intensity of the surrounding area. The solution? Light Probes.

Light Probes work by sampling the light intensity over the location that they are placed at. Dynamic objects, once Light Probe-enabled, will be lit according to the interpolation of the nearest probes around them.

Getting ready

For this recipe, we have prepared ...

Get Unity 5.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.