Version: Unity 7.0 Alpha (7000.0)
Language : English
Light component Inspector window reference for the Built-In-Render-Pipeline
Troubleshooting emissive materials not rendering

Optimize lighting in the Built-In Render Pipeline

Important: The Built-In Render Pipeline is deprecated and will be made obsolete in a future release.
It remains supported, including bug fixes and maintenance, through the full Unity 6.7 LTS lifecycle.
For more information on migration, refer to Migrating from the Built-In Render Pipeline to the Universal Render Pipeline and Render pipeline feature comparison.

To optimize the lights in your scene, avoid Unity using multiple render passes to render GameObjects, or doing too much work to render lighting. This reduces the number of the draw calls the CPU sends, and the number of vertices and pixels the GPU processes.

Do the following:

  • Use lightmapping to light static objects, instead of realtime lights.
  • Avoid combining meshes if they’re lit by different realtime per-pixel lights, because Unity calculates every light for every combined mesh.
  • Avoid lighting GameObjects with multiple per-pixel lights.

Prioritize lights

To avoid lighting GameObjects with multiple per-pixel lights, prioritize which lights provide per-pixel lighting based on which GameObjects they light.

For example, in a driving game, prioritize the car headlights as a per-pixel light, but deprioritize the rear lights and distant lampposts.

To decrease the number of per-pixel lights, do any of the following:

To increase the number of per-pixel lights, do any of the following:

Disable per-vertex and spherical harmonics (SH) lights

To disable per-vertex and SH lights in a custom shader, add the OnlyDirectional tag to the Pass in your ShaderLab code. For more information, refer to Pass tags in ShaderLab reference.

Additional resources

Light component Inspector window reference for the Built-In-Render-Pipeline
Troubleshooting emissive materials not rendering
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961