API

Interface ISortableLight

Defines the common interface of sortable lights

interface ISortableLight {
    renderPriority: number;
    shadowEnabled: boolean;
}

Implemented by

Index
renderPriority: number

Defines the rendering priority of the lights. It can help in case of fallback or number of lights exceeding the number allowed of the materials.

shadowEnabled: boolean

Gets or sets whether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching the current shadow generator.