VisibleLight
Holds data of a visible light.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
- Implements: IEquatable<VisibleLight>
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 |
|---|---|
| areaSize | Rectangle light: 2D size. Disc lights: .x is radius. Tube lights: .x is length. |
| finalColor | Light color multiplied by intensity. |
| forcedVisible | Has the light been forced to be visibile. |
| innerSpotAngle | Falloff of the spotlight inner cone from the outer cone. |
| intersectsFarPlane | Light intersects far clipping plane. |
| intersectsNearPlane | Light intersects near clipping plane. |
| light | Accessor to Light component. |
| lightType | Light type. |
| localToWorldMatrix | Light transformation matrix. |
| range | Light range. |
| screenRect | Light's influence rectangle on screen. |
| shapeRadius | Controls the amount of artificial softening applied to the edges of shadows cast by the Point or Spot light. |
| spotAngle | Spot light angle. |