LightingPlugin
Defined in: lighting/src/LightingPlugin.ts:11
Installs per-scene lighting worlds and the render-phase lighting system.
Implements
Section titled “Implements”Plugin
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LightingPlugin(
config?):LightingPlugin
Defined in: lighting/src/LightingPlugin.ts:20
Parameters
Section titled “Parameters”config?
Section titled “config?”LightingConfig = {}
Returns
Section titled “Returns”LightingPlugin
Properties
Section titled “Properties”dependencies
Section titled “dependencies”
readonlydependencies: readonly ["renderer"]
Defined in: lighting/src/LightingPlugin.ts:14
Names of plugins this plugin depends on.
Implementation of
Section titled “Implementation of”Plugin.dependencies
readonlyname:"lighting"="lighting"
Defined in: lighting/src/LightingPlugin.ts:12
Unique plugin name.
Implementation of
Section titled “Implementation of”Plugin.name
version
Section titled “version”
readonlyversion:"1.0.0"="1.0.0"
Defined in: lighting/src/LightingPlugin.ts:13
Semantic version string.
Implementation of
Section titled “Implementation of”Plugin.version
Methods
Section titled “Methods”install()
Section titled “install()”install(
context):void
Defined in: lighting/src/LightingPlugin.ts:24
Install services into the engine context. Called in topological order.
Parameters
Section titled “Parameters”context
Section titled “context”EngineContext
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Plugin.install
onDestroy()
Section titled “onDestroy()”onDestroy():
void
Defined in: lighting/src/LightingPlugin.ts:55
Called when the engine is destroyed.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Plugin.onDestroy
registerSystems()
Section titled “registerSystems()”registerSystems(
scheduler):void
Defined in: lighting/src/LightingPlugin.ts:51
Register systems with the scheduler. Called after install.
Parameters
Section titled “Parameters”scheduler
Section titled “scheduler”SystemScheduler
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Plugin.registerSystems