Version: 2023.2
Language : English
Lightmap Parameters Asset
Ambient occlusion

Directional Mode

There are two Directional Modes for lightmapsA pre-rendered texture that contains the effects of light sources on static objects in the scene. Lightmaps are overlaid on top of scene geometry to create the effect of lighting. More info
See in Glossary
: Directional and Non-Directional. Both modes are compatible with real-time lightmaps from Unity’s EnlightenA lighting system by Geomerics used in Unity for Enlighten Realtime Global Illumination. More info
See in Glossary
Realtime Global IlluminationA group of techniques that model both direct and indirect lighting to provide realistic lighting results.
See in Glossary
system, and baked lightmaps from Unity’s Progressive LightmapperA tool in Unity that bakes lightmaps according to the arrangement of lights and geometry in your scene. More info
See in Glossary
. 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.

Performance

Directional mode lightmaps consist of two textures, and shadersA program that runs on the GPU. More info
See in Glossary
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 ScenesA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
. 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(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
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
Ambient occlusion
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961