VisibleLight

struct in UnityEngine.Rendering

/

Implemented in:UnityEngine.CoreModule

Description

Holds data of a visible light.

After ScriptableRenderContext.Cull is done, CullingResults.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.

Additional resources: CullingResults.visibleLights, Light.

Properties

finalColorLight color multiplied by intensity.
forcedVisibleHas the light been forced to be visibile.
intersectsFarPlaneLight intersects far clipping plane.
intersectsNearPlaneLight intersects near clipping plane.
lightAccessor to Light component.
lightTypeLight type.
localToWorldMatrixLight transformation matrix.
rangeLight range.
screenRectLight's influence rectangle on screen.
spotAngleSpot light angle.

Did you find this page useful? Please give it a rating: