docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct LightData

    Struct that holds settings related to lights.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    public struct LightData

    Fields

    Name Description
    additionalLightsCount

    The number of additional lights visible by the camera.

    mainLightIndex

    Holds the main light index from the VisibleLight list returned by culling. If there's no main light in the scene, mainLightIndex is set to -1. The main light is the directional light assigned as Sun source in light settings or the brightest directional light. CullingResults

    maxPerObjectAdditionalLightsCount

    Maximum amount of lights that can be shaded per-object. This value only affects forward rendering.

    reflectionProbeBlending

    True if blending is enabled for reflection probes.

    reflectionProbeBoxProjection

    True if box projection is enabled for reflection probes.

    shadeAdditionalLightsPerVertex

    True if additional lights should be shaded in vertex shader, otherwise additional lights will be shaded per pixel.

    supportsAdditionalLights

    True if additional lights enabled.

    supportsLightLayers

    True if light layers are enabled.

    supportsMixedLighting

    True if mixed lighting is supported.

    visibleLights

    List of visible lights returned by culling.

    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)