docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ShadowHasBeenPlaceAndRenderedAtLeastOnce

    ShadowHasBeenPlaceAndRenderedAtLeastOnce(HDAdditionalLightData, int)

    This function verifies if the light if a specific sub-shadow maps is placed in the cached shadow atlas and if it was rendered at least once.

    Declaration
    public bool ShadowHasBeenPlaceAndRenderedAtLeastOnce(HDAdditionalLightData lightData, int shadowIndex)
    Parameters
    Type Name Description
    HDAdditionalLightData lightData

    The light that we want to check.

    int shadowIndex

    The sub-shadow index (e.g. cascade index or point light face). It is ignored when irrelevant to the light type.

    Returns
    Type Description
    bool

    True if the shadow map is already placed in the atlas and rendered at least once, false otherwise.

    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)