docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method WouldFitInAtlas

    WouldFitInAtlas(int, HDLightType)

    This function verifies if a shadow map of resolution shadowResolution for a light of type lightType would fit in the atlas when inserted.

    Declaration
    public bool WouldFitInAtlas(int shadowResolution, HDLightType lightType)
    Parameters
    Type Name Description
    int shadowResolution

    The resolution of the hypothetical shadow map that we are assessing.

    HDLightType lightType

    The type of the light that cast the hypothetical shadow map that we are assessing.

    Returns
    Type Description
    bool

    True if the shadow map would fit in the atlas, false otherwise.

    WouldFitInAtlas(HDAdditionalLightData)

    This function verifies if the shadow map for the passed light would fit in the atlas when inserted.

    Declaration
    public bool WouldFitInAtlas(HDAdditionalLightData lightData)
    Parameters
    Type Name Description
    HDAdditionalLightData lightData

    The light that we try to fit in the atlas.

    Returns
    Type Description
    bool

    True if the shadow map would fit in the atlas, false otherwise. If lightData does not cast shadows, false is returned.

    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)