Skip to content

@fibbojs / core / FLight

Class: abstract FLight

The base class for lights in Fibbo.

Constructors

new FLight()

new FLight(scene, options): FLight

Parameters

scene: FScene

options: FLightOptions = {}

Returns

FLight

Defined in

core/src/FLight.ts:22

Methods

emitOnLoaded()

emitOnLoaded(): void

Emit the onLoaded callbacks.

Returns

void

Defined in

core/src/FLight.ts:55


onLoaded()

onLoaded(callback): void

Add a callback to be called when the light is loaded.

Parameters

callback

The callback function.

Returns

void

Defined in

core/src/FLight.ts:48

Properties

__CALLBACKS_ON_LOADED__

__CALLBACKS_ON_LOADED__: () => void[] = []

Callbacks for when the light is loaded.

Defined in

core/src/FLight.ts:15


scene

scene: FScene

The scene the light is attached to.

Defined in

core/src/FLight.ts:20