Use Probe Volumes
This page provides the basic workflow you need to use Probe Volumes in your project.
Add and bake a Probe Volume
Enable Probe Volumes
- Open the Edit menu and select Project Settings > Quality > HDRP.
- Expand Lighting > Light Probe Lighting.
- For Light Probe System, select Probe Volumes.
- Select Graphics > HDRP Global Settings.
- Go to Frame Settings.
- Expand Camera > Lighting and enable Probe Volumes.
To make sure Reflection Probes also capture lighting data from Probe Volumes, you should also do the following:
- Expand Realtime Reflection > Lighting and enable Probe Volumes.
- Expand Baked or Custom Reflection > Lighting and enable Probe Volumes.
Add a Probe Volume to the Scene
- Open the GameObject menu and select Light > Probe Volumes (Experimental) > Probe Volume.
- In the Inspector for the Probe Volume, enable Global to make this Probe Volume cover your entire Scene.
Adjust your Light and Mesh Renderer settings
- To include a Light in a Probe Volume's baked lighting data, open the Inspector for the Light then set the Light Mode to Mixed or Baked.
- To include an object in a Probe Volume's baked lighting data, open the Inspector for the object and enable Contribute Global Illumination.
- To make an object receive baked lighting, open the Inspector for the object and set Receive Global Illumination to Light Probes.
Bake your lighting
- Open the Window menu and select Rendering > Probe Volume Settings.
- Select the Baking Set that contains your Scene. By default this is New Baking Set.
- Select the Lighting Scenario that stores the baking result, for example the default New Lighting Scenario.
- Select the arrow on the Generate Lighting button and select Bake active Scene.
You can change baking settings in the Lighting window's Lightmapping Settings.
To bake multiple Scenes in a Baking Set, select the arrow on the Generate Lighting button and select Bake loaded scenes or Bake active scenes.
Configure a Probe Volume
You can use the following to configure a Probe Volume:
- Use the settings in the Probe Volume Inspector to change the Probe Volume size and Light Probe density.
- Use the settings in Probe Volume Settings to change the Probe Volume size, Light Probe density, and Light Probe behaviour in all the Probe Volumes in a Baking Set.
- Add a Probe Volume Touchup Component to a Probe Volume, to make Light Probes invalid in a small area and fix lighting issues.
- Add a Volume to your Scene with a Probe Volume Options override, to change the way HDRP samples Probe Volume data when the Camera is inside the Volume. This doesn't affect baking.
For more information, see the following:
Configure Baking Sets
To access Baking Sets properties, open Window > Rendering > Probe Volume Settings.
See Settings and properties related to Probe Volumes.
Add and remove Scenes
When you add a Probe Volume to a Scene, Unity automatically adds the Scene to the default Baking Set.
To add or remove a Scene, select a Baking Set, then use + and - to add or remove.
You can add more than one Scene to a Baking Set, for example if you load multiples Scenes at the same time in an open world game. Each Scene can be in only one Baking Set.
Move a Scene between Baking Sets
- Select the Baking Set you want to move a Scene to.
- In the Scenes section, use the + to select the Scene you want to move.
- In the popup message, select Yes to move the Scene.
Load a Scene
Unity doesn't automatically load the Scenes in a Baking Set when you select the Scene in the Scenes list. To load a Scene, select Load All Scenes In Set.
When you load multiple Scenes together, the lighting might be too bright because HDRP combines light from all the Scenes. See Set up multiple Scenes for more information on loading and unloading Scenes.
You can load multiple Scenes together only if they belong to the same Baking Set.
Add a Lighting Scenario
You can use multiple Lighting Scenarios to store baking results for different Scene setups, and switch between them at runtime. For example, you can use one Lighting Scenario for when a lamp is off, and one for when it's on.
To create a new Lighting Scenario and store baking results inside, do the following:
- Select a Baking Set.
- In the Lighting Scenarios section, select + to add a Lighting Scenario. The Lighting Scenario displays Active Scenario.
- Select Generate Lighting. HDRP stores the baking results in the Lighting Scenario.
To store baking results in a different Lighting Scenario, select the Lighting Scenario so it displays Active Scenario.
If you switch between Lighting Scenarios at runtime, HDRP changes only the Probe Volume's baked indirect lighting. You might still need to use scripts to move geometry or change direct lighting. You can use the following to debug Lighting Scenarios:
- Use the Rendering Debugger to preview transitions between Lighting Scenarios.
- In the Probe Volume Settings, enable Freeze Placement to use existing baked data when you bake, for example if you've moved geometry since the last bake but you want to keep the same Light Probe positions.