docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ShapeAttenuationAreaTubeLight

    ShapeAttenuationAreaTubeLight(Vector3, Vector3, float, Camera)

    Attenuation by Light Shape for Area Light with Tube Shape

    Declaration
    public static float ShapeAttenuationAreaTubeLight(Vector3 lightPositionWS, Vector3 lightSide, float lightWidth, Camera cam)
    Parameters
    Type Name Description
    Vector3 lightPositionWS

    World Space position of the Light

    Vector3 lightSide

    Vector pointing to the side (right or left) or the light

    float lightWidth

    Width (half extent) of the tube light

    Camera cam

    Camera rendering the Tube Light

    Returns
    Type Description
    float

    Attenuation Factor

    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)