docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RequestSubShadowMapRendering

    RequestSubShadowMapRendering(int)

    Some lights render more than one shadow maps (e.g. cascade shadow maps or point lights). This method is used to request the rendering of specific shadow map when Update Mode is set to On Demand. For example, to request the update of a second cascade, shadowIndex should be 1. Note: if shadowIndex is a 0-based index and it must be lower than the number of shadow maps a light renders (i.e. cascade count for directional lights, 6 for point lights).

    Declaration
    public void RequestSubShadowMapRendering(int shadowIndex)
    Parameters
    Type Name Description
    int shadowIndex

    The index of the subshadow to update.

    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)