ShadowDrawingSettings
Create a shadow settings object.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
ShadowDrawingSettings(CullingResults, int)
Create a shadow settings object.
public ShadowDrawingSettings(CullingResults cullingResults, int lightIndex)
Parameters
Remarks
Additional Resources: CullingResults.
ShadowDrawingSettings(CullingResults, int, BatchCullingProjectionType)
Create a shadow settings object.
public ShadowDrawingSettings(CullingResults cullingResults, int lightIndex, BatchCullingProjectionType projectionType)
Parameters
The light index.
The projection type of the shadow map. For directional lights this is usually BatchCullingProjectionType.Orthographic and for point or spot lights, it is usually BatchCullingProjectionType.Perspective.
Remarks
Additional Resources: CullingResults.