Skip to content

LightingPlugin

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

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

  • Plugin

new LightingPlugin(config?): LightingPlugin

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

LightingConfig = {}

LightingPlugin

readonly dependencies: readonly ["renderer"]

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

Names of plugins this plugin depends on.

Plugin.dependencies


readonly name: "lighting" = "lighting"

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

Unique plugin name.

Plugin.name


readonly version: "1.0.0" = "1.0.0"

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

Semantic version string.

Plugin.version

install(context): void

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

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

EngineContext

void

Plugin.install


onDestroy(): void

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

Called when the engine is destroyed.

void

Plugin.onDestroy


registerSystems(scheduler): void

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

Register systems with the scheduler. Called after install.

SystemScheduler

void

Plugin.registerSystems

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/lighting.md.