What is Bakery and why use it

From Bakery GPU Lightmapper: Wiki
Revision as of 23:06, 10 November 2019 by Mr F (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Bakery is a high-end, production-ready GPU lightmapper, designed with flexibility and performance in mind. On top of light baking itself, Bakery aims to solve following problems:

  • Fixing various baking artifacts, such as seams, light/shadow leaks, incorrect shadow terminators, etc. Baking a lightmap should not bring more problems than rendering a camera frame in an offline renderer.
  • Baking all kinds of useful ligthing data. Direct and indirect contribution of different light sources in any combination, separate shadow masks, direction vectors, spherical harmonics, etc. Lighting can be also baked per-vertex or into probes instead of using textures.
  • Physical correctness. Bakery results were thoroughly compared against Mitsuba, a well-known unbiased renderer.
  • LOD support.

Bakery can also take advantage of RTX hardware to speed up baking.

When used in Unity, following benefits are also notable:

  • Directional information can be baked in the form of dominant direction map (classic “directional” mode in Unity), 3 maps for Radiosity Normal Mapping, or 4 maps for per-pixel Spherical Harmonics (much higher quality than classic directional). Multiple directional modes can be used in a single scene on different objects.
  • Bakery supports both correct inverse-squared light falloff and Unity's own non-physical one.
  • IES light support.
  • Baked prefab support.

Some notable games shipped using Bakery:

Call of Duty Mobile

Totally Accurate Battle Simulator

Dead and Buried II

... and many more!