Version: 2017.2
Experimental: this API is experimental and might be changed or removed in the future.

VisibleLight

struct in UnityEngine.Experimental.Rendering

Switch to Manual

Description

Holds data of a visible light.

After CullResults.Cull is done, CullResults.visibleLights will contain an array of lights that are visible. The visible light structure contains packed information for most commonly used Light variables, and a VisibleLight.light reference to the Light component itself.

See Also: CullResults.visibleLights, Light.

Variables

finalColorLight color multiplied by intensity.
flagsLight flags, see VisibleLightFlags.
lightAccessor to Light component.
lightTypeLight type.
localToWorldLight transformation matrix.
rangeLight range.
screenRectLight's influence rectangle on screen.
spotAngleSpot light angle.