Version: 5.6
Mixed lighting
Distance Shadowmask mode

Baked Indirect mode

Baked Indirect mode is a lighting mode shared by all Mixed Lights in a Scene. To set Mixed lighting to Baked Indirect, open the Lighting window (menu: Window > Lighting > Settings), click the Scene tab, navigate to Mixed Lighting and set the Lighting Mode to Baked Indirect. See documentation on Mixed lighting to learn more about this lighting mode, and see documentation on Light modes to learn more about the other modes available.

For Lights that are set to Baked Indirect mode, Unity only precomputes indirect lighting, and does not carry out shadow pre-computations. Shadows are fully real-time within the Shadow Distance (menu: Edit > Project Settings > Quality > Shadows). In other words, Baked Indirect Lights behave like Realtime Lights with additional indirect lighting, but with no shadows beyond the Shadow Distance. You can use effects like Global Fog to obscure the missing shadows past that distance.

A good example of when Baked Indirect mode might be useful is if you are building an indoor shooter or adventure game set in rooms connected with corridors. The viewing distance is limited, so everything that is visible should usually fit within the Shadow Distance. This mode is also useful for building a foggy outdoor Scene, because you can use the fog to hide the missing shadows in the distance.

Shadows

The following table shows how static and dynamic GameObjects cast and receive shadows when using Baked Indirect mode:

Dynamic receiver
A dynamic GameObject that is receiving a shadow from another static or dynamic GameObject
Static receiver
A static GameObject that is receiving a shadow from another static or dynamic GameObject
Within Shadow Distance Beyond Shadow Distance Within Shadow Distance Beyond Shadow Distance
Dynamic caster
A dynamic GameObject that is casting a shadow
Shadow map - Shadow map -
Static caster
A static GameObject that is casting a shadow
Shadow map - Shadow map -

Advantages and disadvantages of Baked Indirect mode

The performance requirements of Baked Indirect mode make it a good option for building to mid-range PCs and high-end mobile devices. These are the most significant advantages and disadvantages of using Baked Indirect mode:

Advantages

  • It provides the same visual effect as Realtime Lighting.
  • It provides real-time shadows for all combinations of static and dynamic GameObjects.
  • It provides indirect lighting.

Disadvantages

  • It has higher performance requirements relative to other Mixed Light modes, because it renders shadow-casting static GameObjects into shadow maps.
  • Shadows do not render beyond the Shadow Distance.

Mixed lighting
Distance Shadowmask mode