An effect source is constructed by providing configuration options.
Optional
options: BasseEffectSourceOptions = {}Options which modify the base effect source instance
A ratio of dim:bright as part of the source radius
Static
effectsStatic
sourceStatic
_initializeStatic
_refreshStatic
defaultEffect source default data.
Static
EDGE_The offset in pixels applied to create soft edges.
Static
Protected
_dimThe corresponding lighting levels for dim light.
Static
Protected
_brightThe corresponding lighting levels for bright light.
Static
Protected
ANIMATIONSProtected
The corresponding animation config.
Static
Protected
_layersProtected
Layers handled by this rendered source.
Test whether this LightSource provides visibility to see a certain target object.
The visibility test configuration
The sequence of tests to perform
The target object being tested
Is the target object visible to this source?
Can this LightSource theoretically detect a certain object based on its properties? This check should not consider the relative positions of either object, only their state.
The target object being tested
Can the target object theoretically be detected by this vision source?
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
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
#updateStatic
getStatic
get
A specialized subclass of the BaseLightSource which renders a source of light as a point-based effect.
Mixes