Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VisibleLight

Holds data of a visible light.
Read time 1 minuteLast updated 5 days ago

Definition

public struct VisibleLight : IEquatable<VisibleLight>

Remarks

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

Property

Description

areaSizeRectangle light: 2D size. Disc lights: .x is radius. Tube lights: .x is length.
finalColorLight color multiplied by intensity.
forcedVisibleHas the light been forced to be visibile.
innerSpotAngleFalloff of the spotlight inner cone from the outer cone.
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.
shapeRadiusControls the amount of artificial softening applied to the edges of shadows cast by the Point or Spot light.
spotAngleSpot light angle.