Skip to content

LightingPlugin

Defined in: lighting/src/LightingPlugin.ts:11

Installs per-scene lighting worlds and the render-phase lighting system.

  • Plugin

new LightingPlugin(config?): LightingPlugin

Defined in: lighting/src/LightingPlugin.ts:20

LightingConfig = {}

LightingPlugin

readonly dependencies: readonly ["renderer"]

Defined in: lighting/src/LightingPlugin.ts:14

Names of plugins this plugin depends on.

Plugin.dependencies


readonly name: "lighting" = "lighting"

Defined in: lighting/src/LightingPlugin.ts:12

Unique plugin name.

Plugin.name


readonly version: "1.0.0" = "1.0.0"

Defined in: lighting/src/LightingPlugin.ts:13

Semantic version string.

Plugin.version

install(context): void

Defined in: lighting/src/LightingPlugin.ts:24

Install services into the engine context. Called in topological order.

EngineContext

void

Plugin.install


onDestroy(): void

Defined in: lighting/src/LightingPlugin.ts:55

Called when the engine is destroyed.

void

Plugin.onDestroy


registerSystems(scheduler): void

Defined in: lighting/src/LightingPlugin.ts:51

Register systems with the scheduler. Called after install.

SystemScheduler

void

Plugin.registerSystems