docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ShadowRTReAllocateIfNeeded

    ShadowRTReAllocateIfNeeded(ref RTHandle, int, int, int, int, float, string)

    Allocate a Shadow Map or re-allocate if it doesn't match requirements. For use only if the map requirements changes at runtime.

    Declaration
    public static bool ShadowRTReAllocateIfNeeded(ref RTHandle handle, int width, int height, int bits, int anisoLevel = 1, float mipMapBias = 0, string name = "")
    Parameters
    Type Name Description
    RTHandle handle

    RTHandle to check (can be null).

    int width

    Width of the Shadow Map.

    int height

    Height of the Shadow Map.

    int bits

    Minimum depth bits of the Shadow Map.

    int anisoLevel

    Anisotropic filtering level of the Shadow Map.

    float mipMapBias

    Bias applied to mipmaps during filtering of the Shadow Map.

    string name

    Name of the Shadow Map.

    Returns
    Type Description
    bool

    If the RTHandle was re-allocated

    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)