Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ILightApi

The api for a light, please see the definitions for ambient, directional, hemisphere, point and spot as this is just a shared interface for all of them. A light can be created by calling the corresponding method in the light scene. A light has a multitude of properties and methods that can be used to adjust the behavior.

Hierarchy

Index

Properties

color: Color

The color of the light.

id: string

The id of the light.

intensity: number

The intensity of the light.

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.