An effect source is constructed by providing configuration options.
Optional
options: BaseEffectSourceOptions = {}Options which modify the base effect source instance
Internal
_visionThe vision mode activation flag for handlers
Records of blinding strings with a boolean value. By default, if any of this record is true, the source is blinded.
The polygon of light perception.
The unconstrained LOS polygon.
The vision mode linked to this VisionSource
Data overrides that could happen with blindness vision mode.
Static
_initializeStatic
_refreshStatic
defaultStatic
EDGE_Static
effectsStatic
sourceProtected
Static
_brightThe corresponding lighting levels for bright light.
Protected
Static
_dimThe corresponding lighting levels for dim light.
An alias for the shape of the vision source.
Is the rendered source animated?
Is this source temporarily blinded?
Light perception radius of this vision source, taking into account if the source is blinded.
If this vision source background is rendered into the lighting container.
Static
_layersProtected
_createProtected
Creates the polygon that represents light perception. If the light perception radius is unconstrained, no new polygon instance is created; instead the LOS polygon of this vision source is returned.
The new polygon or this.los
.
Protected
_createProtected
Create a restricted FOV polygon by limiting the radius of the unrestricted LOS polygon. If the vision radius is unconstrained, no new polygon instance is created; instead the LOS polygon of this vision source is returned.
The new polygon or this.los
.
Protected
_updateProtected
Responsible for assigning the Vision Mode and calling the activation and deactivation handlers.
Protected
_updateProtected
Update layer uniforms according to vision mode uniforms, if any.
The shader being updated.
The targeted layer.
Static
getGet corrected color according to level, dim color, bright color and background color.
The lighting level (one of CONST.LIGHTING_LEVELS)
Optional
colorBackground: ColorStatic
getGet corrected level according to level and active vision mode data.
The lighting level (one of CONST.LIGHTING_LEVELS)
The corrected level.
A specialized subclass of RenderedEffectSource which represents a source of point-based vision.