Version: 2021.1
Configuring shadows
Shadow Cascades

Shadow Distance

Use the Shadow Distance property to determine the distance from the Camera up to which Unity renders real-time shadows.

Shadows from GameObjects become less noticeable the farther the GameObjects are from the Camera. This is both because the shadows appear smaller on the screen, and because distant GameObjects are usually not the focus of attention. You can take advantage of this effect by disabling real-time shadow rendering for distant GameObjects. This saves on wasted rendering operations, and can improve runtime performance. Additionally, the Scene often looks better without distant shadows.

If the current Camera Far Plane is closer than the Shadow Distance, Unity uses the Camera Far Plane instead of the Shadow Distance.

To disguise missing shadows beyond the Shadow Distance, you can use visual effects such as fog.

Setting the Shadow Distance

In the Built-in Render Pipeline, set the Shadow Distance property in your Project’s Quality Settings.

In the Universal Render Pipeline (URP), set the Shadow Distance property in the Universal Render Pipeline Asset.

In the High Definition Render Pipeline (HDRP), set the Shadow Distance property for each Volume.

Shadow Distance and Shadowmask Lighting Mode

If your Scene uses the Shadowmask Lighting Mode, Unity renders shadows from Mixed Lights beyond the Shadow Distance, using either Light Probes or a shadow mask Texture. You can configure how Unity renders shadows beyond the Shadow Distance.

Configuring shadows
Shadow Cascades
Copyright © 2020 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。