docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ShadowData

    Container struct for various data used for shadows in URP.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    public struct ShadowData

    Fields

    Name Description
    additionalLightsShadowmapHeight

    The height of the additional light shadow map.

    additionalLightsShadowmapWidth

    The width of the additional light shadow map.

    bias

    A list of shadow bias.

    mainLightShadowCascadeBorder

    Main light last cascade shadow fade border. Value represents the width of shadow fade that ranges from 0 to 1. Where value 0 is used for no shadow fade.

    mainLightShadowCascadesCount

    The number of shadow cascades.

    mainLightShadowCascadesSplit

    The split between cascades.

    mainLightShadowmapHeight

    The height of the main light shadow map.

    mainLightShadowmapWidth

    The width of the main light shadow map.

    resolution

    A list of resolution for the shadow maps.

    shadowmapDepthBufferBits

    The number of bits used.

    supportsAdditionalLightShadows

    True if additional lights shadows are enabled.

    supportsMainLightShadows

    True if main light shadows are enabled.

    supportsSoftShadows

    True if soft shadows are enabled.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)