文档

Unity Engine

Unity Engine

VisibleLight

Holds data of a visible light.
阅读时间1 分钟最后更新于 1 个月前

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

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.