An effect source is constructed by providing configuration options.
Optionaloptions: 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_refreshStaticdefaultStaticEDGE_StaticeffectsStaticsourceProtected 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_createProtectedCreates 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_createProtectedCreate 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_updateProtectedResponsible for assigning the Vision Mode and calling the activation and deactivation handlers.
Protected_updateProtectedUpdate layer uniforms according to vision mode uniforms, if any.
The shader being updated.
The targeted layer.
StaticgetGet corrected color according to level, dim color, bright color and background color.
The lighting level (one of CONST.LIGHTING_LEVELS)
OptionalcolorBackground: ColorStaticgetGet 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.