Whether to currently animate light sources.
Whether to currently animate vision sources.
A mapping of light sources which are active within the rendered Scene.
A mapping of darkness sources which are active within the rendered Scene.
A Collection of vision sources which are currently active within the rendered Scene.
A set of vision mask filters used in visual effects group
A layer of background alteration effects which change the appearance of the primary group render texture.
A layer which adds illumination-based effects to the scene.
A layer which adds color-based effects to the scene.
A layer which adds darkness effects to the scene.
Static
Private
#DARKNESS_The name of the darkness level animation.
Re-initialize the shapes of all darkness sources in the Scene. This happens before initialization of light sources because darkness sources contribute additional edges which limit perception. Packages can use the "initializeDarknessSources" hook to programmatically add darkness sources.
Activate post-processing effects for a certain effects channel.
The filter mode to target.
Optional
postProcessingModes: string[] = []The post-processing modes to apply to this filter.
Optional
uniforms: Object = {}The uniforms to update.
Animate a smooth transition of the darkness overlay to a target value. Only begin animating if another animation is not already in progress.
The target darkness level between 0 and 1
The desired animation time in milliseconds. Default is 10 seconds
A Promise which resolves once the animation is complete
Private
#addPrivate
#addPrivate
#animate
A container group which contains visual effects rendered above the primary group.
TODO: The effects canvas group is now only performing shape initialization, logic that needs to happen at the placeable or object level is now their burden.
Hook Events