Class HDShadowAtlas | High Definition RP | 7.1.8
docs.unity3d.com
    Show / Hide Table of Contents

    Class HDShadowAtlas

    Inheritance
    Object
    HDShadowAtlas
    Namespace: UnityEngine.Rendering.HighDefinition
    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
    Type Name Description
    RenderPipelineResources renderPipelineResources
    Int32 width
    Int32 height
    Int32 atlasShaderID
    Int32 atlasSizeShaderID
    Material clearMaterial
    Int32 maxShadowRequests
    HDShadowAtlas.BlurAlgorithm blurAlgorithm
    FilterMode filterMode
    DepthBits depthBufferBits
    RenderTextureFormat format
    String name
    Int32 momentAtlasShaderID

    Properties

    atlasShapeID

    Declaration
    public int atlasShapeID { get; }
    Property Value
    Type Description
    Int32

    frameOfCacheValidity

    Declaration
    public int frameOfCacheValidity { get; }
    Property Value
    Type Description
    Int32

    height

    Declaration
    public int height { get; }
    Property Value
    Type Description
    Int32

    renderTarget

    Declaration
    public RTHandle renderTarget { get; }
    Property Value
    Type Description
    RTHandle

    width

    Declaration
    public int width { get; }
    Property Value
    Type Description
    Int32

    Methods

    BindResources(CommandBuffer)

    Declaration
    public void BindResources(CommandBuffer cmd)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Clear()

    Declaration
    public void Clear()

    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
    Type Description
    Boolean

    Release()

    Declaration
    public void Release()

    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
    Type Name Description
    LightingDebugSettings lightingDebugSettings

    UpdateSize(Vector2Int)

    Declaration
    public void UpdateSize(Vector2Int size)
    Parameters
    Type Name Description
    Vector2Int size
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023