VisibleLight

struct in UnityEngine.Rendering

Cambiar al Manual

Descripción

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.

See Also: CullingResults.visibleLights, Light.

Variables

finalColorLight color multiplied by intensity.
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.