Class HDShadowAtlas
Inheritance
HDShadowAtlas
Syntax
public class HDShadowAtlas
Constructors
HDShadowAtlas(RenderPipelineResources, Int32, Int32, Int32, Material, Boolean, Boolean, FilterMode, DepthBits, RenderTextureFormat, String)
Declaration
public HDShadowAtlas(RenderPipelineResources renderPipelineResources, int width, int height, int atlasSizeShaderID, Material clearMaterial, bool supportMomentShadows, bool BlurredEVSM = false, FilterMode filterMode = null, DepthBits depthBufferBits = DepthBits.Depth16, RenderTextureFormat format = null, string name = "")
Parameters
Properties
height
Declaration
public int height { get; }
Property Value
identifier
Declaration
public RenderTargetIdentifier identifier { get; }
Property Value
| Type |
Description |
| RenderTargetIdentifier |
|
width
Declaration
public int width { get; }
Property Value
Methods
AddShadowRequest(HDShadowRequest)
Declaration
public void AddShadowRequest(HDShadowRequest shadowRequest)
Parameters
AreaShadowBlurMoments(CommandBuffer, HDCamera)
Declaration
public void AreaShadowBlurMoments(CommandBuffer cmd, HDCamera hdCamera)
Parameters
| Type |
Name |
Description |
| CommandBuffer |
cmd |
|
| HDCamera |
hdCamera |
|
Clear()
Declaration
ComputeMomentShadows(CommandBuffer, HDCamera)
Declaration
public void ComputeMomentShadows(CommandBuffer cmd, HDCamera hdCamera)
Parameters
| Type |
Name |
Description |
| CommandBuffer |
cmd |
|
| HDCamera |
hdCamera |
|
DisplayAtlas(CommandBuffer, Material, Rect, Single, Single, Single, Single, Single, Single)
Declaration
public void DisplayAtlas(CommandBuffer cmd, Material debugMaterial, Rect atlasViewport, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue)
Parameters
| Type |
Name |
Description |
| CommandBuffer |
cmd |
|
| Material |
debugMaterial |
|
| Rect |
atlasViewport |
|
| Single |
screenX |
|
| Single |
screenY |
|
| Single |
screenSizeX |
|
| Single |
screenSizeY |
|
| Single |
minValue |
|
| Single |
maxValue |
|
GetMomentRT()
Declaration
public RTHandleSystem.RTHandle GetMomentRT()
Returns
HasBlurredEVSM()
Declaration
public bool HasBlurredEVSM()
Returns
Layout(Boolean)
Declaration
public bool Layout(bool allowResize = true)
Parameters
| Type |
Name |
Description |
| Boolean |
allowResize |
|
Returns
Release()
Declaration
RenderShadows(ScriptableRenderContext, CommandBuffer, ShadowDrawingSettings)
Declaration
public void RenderShadows(ScriptableRenderContext renderContext, CommandBuffer cmd, ShadowDrawingSettings dss)
Parameters
| Type |
Name |
Description |
| ScriptableRenderContext |
renderContext |
|
| CommandBuffer |
cmd |
|
| ShadowDrawingSettings |
dss |
|
ReserveResolution(HDShadowResolutionRequest)
Declaration
public void ReserveResolution(HDShadowResolutionRequest shadowRequest)
Parameters
UpdateDebugSettings(LightingDebugSettings)
Declaration
public void UpdateDebugSettings(LightingDebugSettings lightingDebugSettings)
Parameters
UpdateSize(Vector2Int)
Declaration
public void UpdateSize(Vector2Int size)
Parameters
| Type |
Name |
Description |
| Vector2Int |
size |
|