Version: 2020.2
Light Explorer extension
The Progressive Lightmapper

Lightmapping

Lightmapping is the process of pre-calculating the brightness of surfaces in a Scene, and storing the result in a Texture called a lightmap for later use.

Left: A simple lightmapped scene. Right: The lightmap Texture generated by Unity. Note how both shadow and light information is captured.
Left: A simple lightmapped scene. Right: The lightmap Texture generated by Unity. Note how both shadow and light information is captured.

Lightmaps can include both direct and indirect light. This lighting texture can be used together with surface information like color (albedo) and relief (normals) by the Shader associated with an object’s material.

The data baked into lightmaps cannot change at runtime. Realtime lights can be overlaid and used additively on top of a lightmapped scene, but cannot interactively change the lightmaps themselves.

With this approach, we trade the ability to move our lights at gameplay for a potential increase in performance, suiting less powerful hardware such as mobile platforms.

Unity provides the following lightmappers for generating lightmaps:

For advice on setting up a lightmapper, see Lightmapping: Getting started.

Light Explorer extension
The Progressive Lightmapper
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961