Lighting configuration workflow
Resources for selecting a render pipeline, configuring global lighting settings, and adding lighting elements.
阅读时间1 分钟最后更新于 5 天前
To set up lighting in Unity, follow these steps:
Choose a render pipeline
Unity provides render pipelines that differ in customization and lighting features:
- Built-in Render Pipeline (not scriptable)
- Universal Render Pipeline (URP)
- High-Definition Render Pipeline (HDRP)
- Custom Scriptable Render Pipeline (SRP)
For more information on render pipeline selection, refer to choose a render pipeline.
Configure lighting
-
Choose baked GI, realtime GI, mixed baked and realtime GI, or opt for no GI.For more information, refer to Lighting Settings Asset Inspector window referenceIn URP, you can instead calculate indirect lighting entirely at runtime with Surface Cache Global Illumination.
-
Choose one of the following Lighting Modes:
- Baked Indirect
- Subtractive
- Shadowmask
- Distance Shadowmask
For more information, refer to Lighting Mode.
Fine-tune your scene lighting
To fine-tune your scene lighting, follow these tasks based on project requirements:
-
Optionally configure emissive surfaces with baked GI or realtime GI.
-
Add baked, realtime, or custom Reflection Probes.
-
If a GI mode is set, add Light Probes. You can also add Light Probe Proxy Volumes (LPPVs).
To find, inspect, and batch-edit lighting objects across your scene, use Lighting Search.