Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDirectionalLightApi

The api for a directional light. A directional light can be created by calling the addDirectionalLight method.

Hierarchy

Index

Properties

castShadow: boolean

Option to cast shadows.

color: Color

The color of the light.

direction: vec3

The direction of the light.

id: string

The id of the light.

intensity: number

The intensity of the light.

shadowMapBias: number

The bias of the shadow map.

shadowMapResolution: number

The resolution of the shadow map.

type: LIGHT_TYPE

The type of the light.

name?: string

The name of the light. Used by the platform.

order?: number

The order of the light. Used by the platform.