TierSettings.prefer32BitShadowMaps

Switch to Manual
public bool prefer32BitShadowMaps ;

Description

允许您指定 Unity 是否应尽可能尝试使用 32 位阴影贴图。

大多数平台采用的是固定阴影贴图格式,您无法进行调整。这些平台的格式多种多样,可以是 16 位、24 位或 32 位,也可以基于浮点数或整数。

However, when you are targeting PlayStation 4 or platforms using DirectX 11 or DirectX 12, you can choose whether Unity should use a 16-bit or 32-bit float shadow map.

32 位阴影贴图提供的阴影质量要高于 16 位阴影贴图,但它们会在 GPU 上占用更多的内存和带宽。

In addition, 32-bit shadow maps can only be used if the depth buffer is also set to 32-bit.