Class HDShadowManager
Inheritance
HDShadowManager
Syntax
public class HDShadowManager : IDisposable
Constructors
HDShadowManager(RenderPipelineResources, DepthBits, HDShadowInitParameters.HDShadowAtlasInitParams, HDShadowInitParameters.HDShadowAtlasInitParams, Int32, Shader)
Declaration
public HDShadowManager(RenderPipelineResources renderPipelineResources, DepthBits directionalShadowDepthBits, HDShadowInitParameters.HDShadowAtlasInitParams punctualLightAtlasInfo, HDShadowInitParameters.HDShadowAtlasInitParams areaLightAtlasInfo, int maxShadowRequests, Shader clearShader)
Parameters
Fields
k_DirectionalShadowCascadeCount
Declaration
public const int k_DirectionalShadowCascadeCount = 4
Field Value
Methods
BindResources(CommandBuffer)
Declaration
public void BindResources(CommandBuffer cmd)
Parameters
| Type |
Name |
Description |
| CommandBuffer |
cmd |
|
Clear()
Declaration
DisplayAreaLightShadowAtlas(CommandBuffer, Material, Single, Single, Single, Single, Single, Single)
Declaration
public void DisplayAreaLightShadowAtlas(CommandBuffer cmd, Material debugMaterial, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue)
Parameters
DisplayShadowAtlas(CommandBuffer, Material, Single, Single, Single, Single, Single, Single)
Declaration
public void DisplayShadowAtlas(CommandBuffer cmd, Material debugMaterial, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue)
Parameters
DisplayShadowCascadeAtlas(CommandBuffer, Material, Single, Single, Single, Single, Single, Single)
Declaration
public void DisplayShadowCascadeAtlas(CommandBuffer cmd, Material debugMaterial, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue)
Parameters
DisplayShadowMap(Int32, CommandBuffer, Material, Single, Single, Single, Single, Single, Single)
Declaration
public void DisplayShadowMap(int shadowIndex, CommandBuffer cmd, Material debugMaterial, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue)
Parameters
Dispose()
Declaration
GetDirectionalShadowAlgorithm()
Declaration
public static DirectionalShadowAlgorithm GetDirectionalShadowAlgorithm()
Returns
GetReservedResolution(Int32)
Declaration
public Vector2 GetReservedResolution(int index)
Parameters
| Type |
Name |
Description |
| Int32 |
index |
|
Returns
GetShadowRequestCount()
Declaration
public int GetShadowRequestCount()
Returns
LayoutShadowMaps(LightingDebugSettings)
Declaration
public void LayoutShadowMaps(LightingDebugSettings lightingDebugSettings)
Parameters
PrepareGPUShadowDatas(CullingResults, Camera)
Declaration
public void PrepareGPUShadowDatas(CullingResults cullResults, Camera camera)
Parameters
| Type |
Name |
Description |
| CullingResults |
cullResults |
|
| Camera |
camera |
|
RenderShadows(ScriptableRenderContext, CommandBuffer, CullingResults, HDCamera)
Declaration
public void RenderShadows(ScriptableRenderContext renderContext, CommandBuffer cmd, CullingResults cullResults, HDCamera hdCamera)
Parameters
| Type |
Name |
Description |
| ScriptableRenderContext |
renderContext |
|
| CommandBuffer |
cmd |
|
| CullingResults |
cullResults |
|
| HDCamera |
hdCamera |
|
ReserveShadowResolutions(Vector2, ShadowMapType)
Declaration
public int ReserveShadowResolutions(Vector2 resolution, ShadowMapType shadowMapType)
Parameters
| Type |
Name |
Description |
| Vector2 |
resolution |
|
| ShadowMapType |
shadowMapType |
|
Returns
SyncData()
Declaration
UpdateCascade(Int32, Vector4, Single)
Declaration
public void UpdateCascade(int cascadeIndex, Vector4 cullingSphere, float border)
Parameters
| Type |
Name |
Description |
| Int32 |
cascadeIndex |
|
| Vector4 |
cullingSphere |
|
| Single |
border |
|
UpdateCullingParameters(ref ScriptableCullingParameters)
Declaration
public void UpdateCullingParameters(ref ScriptableCullingParameters cullingParams)
Parameters
| Type |
Name |
Description |
| ScriptableCullingParameters |
cullingParams |
|
UpdateDirectionalShadowResolution(Int32, Int32)
Declaration
public void UpdateDirectionalShadowResolution(int resolution, int cascadeCount)
Parameters
| Type |
Name |
Description |
| Int32 |
resolution |
|
| Int32 |
cascadeCount |
|
UpdateShadowRequest(Int32, HDShadowRequest)
Declaration
public void UpdateShadowRequest(int index, HDShadowRequest shadowRequest)
Parameters