Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DirectionalLight

The DirectionalLight interface represents directional lighting, which simulates light coming from a specific direction.

Hierarchy

  • Light
    • DirectionalLight

Index

Properties

color

color: Color | StyleZoomRange<Color> | ((zoomlevel: number) => Color) | StyleExpression<Color>

The color of the light. Can be specified as a Color value, a StyleZoomRange<Color>, a function that returns a Color based on zoom level, or a StyleExpression<Color>.

direction

direction: number[]

The direction of the light, represented as a vector. This determines the direction from which the light is coming.

Optional intensity

intensity: number

The intensity of the light. This property is optional and defaults to 1 if not specified.

type

type: "directional"

The type of light. For DirectionalLight, this is always 'directional'.

Generated using TypeDoc