An effect source is constructed by providing configuration options.
Optional
options: BasseEffectSourceOptions = {}Options which modify the base effect source instance
The Edge instances added by this darkness source.
A ratio of dim:bright as part of the source radius
Protected
_visualThe optional geometric shape is solely utilized for visual representation regarding darkness sources. Used only when an additional radius is added for visuals.
Protected
_paddingPadding applied on the darkness source shape for visual appearance only. Note: for now, padding is increased radius. It might evolve in a future release.
Private
#borderThe normalized border distance.
Static
effectsStatic
_dimStatic
_brightStatic
sourceStatic
_initializeStatic
_refreshStatic
defaultEffect source default data.
Static
EDGE_The offset in pixels applied to create soft edges.
A convenience accessor to the darkness layer mesh.
Static
ANIMATIONSStatic
_layersAn animation with flickering ratio and light intensity.
Delta time
Optional
options: { Additional options which modify the flame animation
The animation speed, from 0 to 10
The animation intensity, from 1 to 10
Reverse the animation direction
An animation with flickering ratio and light intensity
Delta time
Optional
options: { Additional options which modify the flame animation
The animation speed, from 0 to 10
The animation intensity, from 1 to 10
Noise amplification (>1) or dampening (<1)
Reverse the animation direction
A basic "pulse" animation which expands and contracts.
Delta time
Optional
options: { Additional options which modify the pulse animation
The animation speed, from 0 to 10
The animation intensity, from 1 to 10
Reverse the animation direction
Private
#createCreate a radius constrained polygon from the visual shape polygon. If the visual shape is not created, no polygon is created.
The radius to constraint to.
The new polygon or null if no visual shape is present.
Private
#createPrivate
#deleteStatic
getStatic
get
A specialized subclass of the BaseLightSource which renders a source of darkness as a point-based effect.
Mixes