What it does

A Lightmap stores lighting calculated in advance for mainly static surfaces such as walls or floors. Rendering reads that saved result instead of recalculating all of that lighting every frame.

Figure: Conceptual relationship: Static-surface lighting → Precompute and store → Sample in the shader
Figure: Conceptual relationship: Static-surface lighting → Precompute and store → Sample in the shader

How to use it

For static surfaces inspect Contribute GI, lightmap UVs, light modes and lighting settings before baking. Overlapping charts, insufficient padding and low texel density affect quality.

A concrete example

Indirect illumination on fixed interior walls is a typical use. Moving walls or significantly changing lights does not necessarily update existing baked images automatically.

How to check it

  1. Bake a simple room and inspect edges and UV seams.
    Match baked lighting information to UVs
    Match baked lighting information to UVs
  2. Investigate UV overlap and occlusion geometry before increasing resolution, and measure Player memory/loading cost.
    Match baked lighting information to UVs
    Match baked lighting information to UVs

Limitations

Runtime cost is not zero: sampling, memory, and any dynamic lighting remain.

References