Version: 2020.2
Lightmap Parameters Asset
Lightmaps and LOD

Directional Mode

There are two Directional Modes for lightmaps: Directional and Non-Directional. Both modes are compatible with realtime lightmaps from Unity’s Realtime Global Illumination system, and baked lightmaps from Unity’s Progressive Lightmapper. The default mode is Directional.

When you bake a Directional lightmap, Unity generates two lightmap textures. One texture stores information about the intensity and color of the lighting received across the target surface. This is identical to the Non-Directional lightmap. The other texture stores the dominant light direction, along with a factor describing how much of the total light received comes from that dominant direction.

The barrels in this image have baked Non-directional lightmaps.

The barrels in this image have baked Directional lightmaps.


Directional mode lightmaps consist of two textures, and shaders sample both textures during rendering. The additional texture increases video memory requirements. Generating the additional directionality texture also has an impact on baking performance.

Non-Directional mode lightmaps only include a single texture. As a result, they require less video memory and less storage than Directional maps, and are faster to decode in shaders. These optimizations reduce visual quality.

Setting your lightmap mode

To set the mode in your Lighting Settings Asset, open the Lighting window (Window > Lighting > Settings), click Scene, navigate to the Lightmapping Settings, and select Directional Mode.

You can set the lightmap mode for an instance of the Lighting Settings asset which can apply to one or more Scenes. You cannot set the lightmap mode for individual lightmaps.

Using Directional Mode with additive loading

Unity can load Scenes additively. This means you can use Multi-Scene editing, for example. When you load Scenes additively, all of them must use the same Directional Mode. This includes Scenes that are not baked, such as UI elements or loading screens. Using the same Lightmap Parameters asset for all of the Scenes in your project can help you avoid settings conflicts.

Lightmap Parameters Asset
Lightmaps and LOD
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。