docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetShadowBias

    GetShadowBias(ref VisibleLight, int, ref ShadowData, Matrix4x4, float)

    Calculates the depth and normal bias from a light.

    Declaration
    public static Vector4 GetShadowBias(ref VisibleLight shadowLight, int shadowLightIndex, ref ShadowData shadowData, Matrix4x4 lightProjectionMatrix, float shadowResolution)
    Parameters
    Type Name Description
    VisibleLight shadowLight
    int shadowLightIndex
    ShadowData shadowData
    Matrix4x4 lightProjectionMatrix
    float shadowResolution
    Returns
    Type Description
    Vector4

    The depth and normal bias from a visible light.

    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)