The LightRenderer component is used to render a light effect on the screen.
It supports a circular light source with a specified radius and intensity.
The light can be optionally smoothed for a softer edge effect.
This component requires a DarknessRenderer component to be present in the scene to function properly, as it works by illuminating areas within the darkness mask.\

const lightRenderer = new LightRenderer({
radius: 100,
smooth: true,
layer: "Default",
intensity: 0.8
});

Constructors

Properties

Constructors

Properties

intensity: number = 1

Light intensitry between 0 and 1

layer: string = defaultRenderLayer

Darkness render layer

radius: number = 0

Light radius

smooth: boolean = false

Smooth