Struct LightData
Struct that holds settings related to lights.
Inherited Members
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 |
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. |