Class HDShadowAtlas
Inheritance
HDShadowAtlas
Syntax
public class HDShadowAtlas
Constructors
HDShadowAtlas(RenderPipelineResources, Int32, Int32, Int32, Int32, Material, Int32, HDShadowAtlas.BlurAlgorithm, FilterMode, DepthBits, RenderTextureFormat, String, Int32)
Declaration
public HDShadowAtlas(RenderPipelineResources renderPipelineResources, int width, int height, int atlasShaderID, int atlasSizeShaderID, Material clearMaterial, int maxShadowRequests, HDShadowAtlas.BlurAlgorithm blurAlgorithm = HDShadowAtlas.BlurAlgorithm.None, FilterMode filterMode = null, DepthBits depthBufferBits = null, RenderTextureFormat format = null, string name = "", int momentAtlasShaderID = 0)
Parameters
Properties
atlasShapeID
Declaration
public int atlasShapeID { get; }
Property Value
frameOfCacheValidity
Declaration
public int frameOfCacheValidity { get; }
Property Value
height
Declaration
public int height { get; }
Property Value
renderTarget
Declaration
public RTHandle renderTarget { get; }
Property Value
| Type |
Description |
| RTHandle |
|
width
Declaration
public int width { get; }
Property Value
Methods
BindResources(CommandBuffer)
Declaration
public void BindResources(CommandBuffer cmd)
Parameters
| Type |
Name |
Description |
| CommandBuffer |
cmd |
|
Clear()
Declaration
DisplayAtlas(RTHandle, CommandBuffer, Material, Rect, Single, Single, Single, Single, Single, Single, MaterialPropertyBlock)
Declaration
public void DisplayAtlas(RTHandle atlasTexture, CommandBuffer cmd, Material debugMaterial, Rect atlasViewport, float screenX, float screenY, float screenSizeX, float screenSizeY, float minValue, float maxValue, MaterialPropertyBlock mpb)
Parameters
| Type |
Name |
Description |
| RTHandle |
atlasTexture |
|
| CommandBuffer |
cmd |
|
| Material |
debugMaterial |
|
| Rect |
atlasViewport |
|
| Single |
screenX |
|
| Single |
screenY |
|
| Single |
screenSizeX |
|
| Single |
screenSizeY |
|
| Single |
minValue |
|
| Single |
maxValue |
|
| MaterialPropertyBlock |
mpb |
|
HasBlurredEVSM()
Declaration
public bool HasBlurredEVSM()
Returns
Release()
Declaration
RenderShadows(CullingResults, FrameSettings, ScriptableRenderContext, CommandBuffer)
Declaration
public void RenderShadows(CullingResults cullResults, FrameSettings frameSettings, ScriptableRenderContext renderContext, CommandBuffer cmd)
Parameters
| Type |
Name |
Description |
| CullingResults |
cullResults |
|
| FrameSettings |
frameSettings |
|
| ScriptableRenderContext |
renderContext |
|
| CommandBuffer |
cmd |
|
UpdateDebugSettings(LightingDebugSettings)
Declaration
public void UpdateDebugSettings(LightingDebugSettings lightingDebugSettings)
Parameters
UpdateSize(Vector2Int)
Declaration
public void UpdateSize(Vector2Int size)
Parameters
| Type |
Name |
Description |
| Vector2Int |
size |
|