docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method InitializeLightConstants_Common

    InitializeLightConstants_Common(NativeArray<VisibleLight>, int, out Vector4, out Vector4, out Vector4, out Vector4, out Vector4)

    Initializes common light constants.

    Declaration
    public static void InitializeLightConstants_Common(NativeArray<VisibleLight> lights, int lightIndex, out Vector4 lightPos, out Vector4 lightColor, out Vector4 lightAttenuation, out Vector4 lightSpotDir, out Vector4 lightOcclusionProbeChannel)
    Parameters
    Type Name Description
    NativeArray<VisibleLight> lights

    List of lights to iterate.

    int lightIndex

    The index of the light.

    Vector4 lightPos

    The position of the light.

    Vector4 lightColor

    The color of the light.

    Vector4 lightAttenuation

    The attenuation of the light.

    Vector4 lightSpotDir

    The direction of the light.

    Vector4 lightOcclusionProbeChannel

    The occlusion probe channel for the 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)