SightlineState

Per-frame snapshot of the active directional / omnidirectional sightline so receiver programs can sample the sightline depth cube in their own fragment shader (parallel to earth.worldwind.layer.shadow.ShadowState).

Populated by earth.worldwind.draw.DrawableSightline after its depth pass, before any receiver renders. Read by drawables that opt in via SightlineReceiverProgram and the applySightlineReceiverUniforms helper. null between frames and on frames without an enabled sightline; receivers must treat a null state as "no sightline".

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

cos(fieldOfView / 2) for the azimuth wedge; -1 (fov = 360) disables it.

Link copied to clipboard

Unit horizontal forward direction of the wedge in the local frame, (sin heading, cos heading). Irrelevant when the azimuth wedge is disabled (cosHalfFov = -1).

Link copied to clipboard
Link copied to clipboard

Occluded (out-of-line-of-sight) tint color. Premultiplied by the receiver.

Link copied to clipboard

Range cap in world units. Receiver fragments past range are untinted.

Link copied to clipboard

World -> sightline-local transform (inv(centerTransform); local frame has Z = up).

Link copied to clipboard

sin(min(fieldOfView / 2, 90 deg)) capping elevation above the horizon; 1 disables it.

Link copied to clipboard

Visible (line-of-sight) tint color. Premultiplied by the receiver.