forked from BilalY/Rasagar
3.4 KiB
3.4 KiB
uid |
---|
urp-probevolumes-use |
Use Adaptive Probe Volumes
This page provides the basic workflow you need to use Adaptive Probe Volumes in your project.
Add and bake an Adaptive Probe Volume
Enable Adaptive Probe Volumes
- From the main menu, select Edit > Project Settings > Quality.
- In the Rendering section, double-click the active Render Pipeline Asset to open it in the Inspector window.
- In the Lighting section, set Light Probe System to Adaptive Probe Volumes.
Add an Adaptive Probe Volume to the Scene
- From the main menu, select GameObject > Light > Adaptive Probe Volumes > Adaptive Probe Volume.
- In the Inspector for the Adaptive Probe Volume, set Mode to Global to make this Adaptive Probe Volume cover your entire Scene.
Adjust your Light and Mesh Renderer settings
- To include a Light in an Adaptive Probe Volume's baked lighting data, open the Inspector for the Light then set the Light Mode to Mixed or Baked.
- To include a GameObject in an Adaptive Probe Volume's baked lighting data, open the Inspector for the GameObject and enable Contribute Global Illumination.
- To make a GameObject receive baked lighting, open the Inspector for the GameObject and set Receive Global Illumination to Light Probes.
Bake your lighting
- From the main menu, select Window > Rendering > Lighting.
- Select the Adaptive Probe Volumes panel.
- Set Baking Mode to Single Scene.
- Select Generate Lighting.
If no scene in the Baking Set contains an Adaptive Probe Volume, Unity asks if you want to create an Adaptive Probe Volume automatically.
You can change baking settings in the Lighting window's Lightmapping Settings.
Refer to Bake different lighting setups with Baking Sets for more information about Baking Sets.
If there are visual artefacts in baked lighting, such as dark blotches or light leaks, refer to Fix issues with Adaptive Probe Volumes.
Configure an Adaptive Probe Volume
You can use the following to configure an Adaptive Probe Volume:
- Use the Adaptive Probe Volumes panel in the Lighting window to change the probe spacing and behaviour in all the Adaptive Probe Volumes in a Baking Set.
- Use the settings in the Adaptive Probe Volume Inspector window to change the Adaptive Probe Volume size and probe density.
- Add a Probe Adjustment Volume component to the Adaptive Probe Volume, to make probes invalid in a small area or fix other lighting issues.
- Add a Volume to your scene with a Probe Volumes Options Override, to change the way URP samples Adaptive Probe Volume data when the camera is inside the volume. This doesn't affect baking.