Class HDShadowManager | High Definition RP | 6.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class HDShadowManager

    Inheritance
    Object
    HDShadowManager
    Namespace: UnityEngine.Experimental.Rendering.HDPipeline
    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
    Type Name Description
    RenderPipelineResources renderPipelineResources
    DepthBits directionalShadowDepthBits
    HDShadowInitParameters.HDShadowAtlasInitParams punctualLightAtlasInfo
    HDShadowInitParameters.HDShadowAtlasInitParams areaLightAtlasInfo
    Int32 maxShadowRequests
    Shader clearShader

    Fields

    k_DirectionalShadowCascadeCount

    Declaration
    public const int k_DirectionalShadowCascadeCount = 4
    Field Value
    Type Description
    Int32

    Methods

    BindResources(CommandBuffer)

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

    Clear()

    Declaration
    public void Clear()

    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
    Type Name Description
    CommandBuffer cmd
    Material debugMaterial
    Single screenX
    Single screenY
    Single screenSizeX
    Single screenSizeY
    Single minValue
    Single maxValue

    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
    Type Name Description
    CommandBuffer cmd
    Material debugMaterial
    Single screenX
    Single screenY
    Single screenSizeX
    Single screenSizeY
    Single minValue
    Single maxValue

    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
    Type Name Description
    CommandBuffer cmd
    Material debugMaterial
    Single screenX
    Single screenY
    Single screenSizeX
    Single screenSizeY
    Single minValue
    Single maxValue

    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
    Type Name Description
    Int32 shadowIndex
    CommandBuffer cmd
    Material debugMaterial
    Single screenX
    Single screenY
    Single screenSizeX
    Single screenSizeY
    Single minValue
    Single maxValue

    Dispose()

    Declaration
    public void Dispose()

    GetDirectionalShadowAlgorithm()

    Declaration
    public static DirectionalShadowAlgorithm GetDirectionalShadowAlgorithm()
    Returns
    Type Description
    DirectionalShadowAlgorithm

    GetReservedResolution(Int32)

    Declaration
    public Vector2 GetReservedResolution(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    Vector2

    GetShadowRequestCount()

    Declaration
    public int GetShadowRequestCount()
    Returns
    Type Description
    Int32

    LayoutShadowMaps(LightingDebugSettings)

    Declaration
    public void LayoutShadowMaps(LightingDebugSettings lightingDebugSettings)
    Parameters
    Type Name Description
    LightingDebugSettings lightingDebugSettings

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

    SyncData()

    Declaration
    public void SyncData()

    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
    Type Name Description
    Int32 index
    HDShadowRequest shadowRequest
    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