Parameters used to create a Light.

interface LightParams {
    color?: Vec3;
    intensity?: number;
    index?: number;
    type?: string;
}

Hierarchy (view full)

Properties

color?: Vec3

The Light color. Default to Vec3(1).

intensity?: number

The Light intensity. Default to 1.

index?: number
type?: string

Index of this Light, i.e. the number of time a Light of this type has been created.