Fog
Shader-based fog with configurable color, scale, speed, density, and directional movement.
Environmental filters change the Scene surface or atmosphere. They can cover the full Scene, be limited to Regions, and be moved within the effect stack.
| Reference | Value |
|---|---|
| Package | FXMaster |
| Effect kind | Filter effect |
| Category | Environmental |
| Runtime type | fog |
| Exposed parameters | 19 |
Important controls
Section titled “Important controls”- Scale: Changes the size of the fog pattern. Lower values create smaller, tighter detail; higher values create broader fog banks.
- Opacity: Changes how opaque the continuous fog layer appears. Higher values hide more of the underlying map.
- Direction: Sets the direction the fog layer travels across the canvas.
- Synchronized Direction: Uses the active Wind or Duststorm direction for Fog. When the source direction changes, this effect follows it.
- Token Trails: Moving visible tokens temporarily lower fog opacity along their path. The cleared area fades smoothly back to normal fog opacity.
Setup notes
Section titled “Setup notes”- This is the Fog filter. The particle Fog effect creates separate moving banks instead.
- Token Trails can temporarily clear haze around moving tokens and settle back over time.
- Synchronized Direction allows the filter to follow compatible Wind or Duststorm effects.
Bundled preset usage
Section titled “Bundled preset usage”| Preset | API name | Availability | Variants |
|---|---|---|---|
| Aether Haze | aether-haze |
FXMaster+ | Normal |
| Fog | fog |
FXMaster | Normal |
| Heat Wave | heat-wave |
FXMaster | Normal |
| Luminous Sky | luminous-sky |
FXMaster+ | Normal |
| Mist | mist |
FXMaster | Normal |
| Rolling Fog | rolling-fog |
FXMaster | Normal |
Parameters
Section titled “Parameters”The table combines the settings available for this effect in Scene and Region contexts. Scene-only and Region-only badges identify controls limited to one context. Hover or focus an info button to see what the parameter changes on the canvas. Select it to keep the card open. Each card also includes the default, range or choices, context, availability, API key, and control type.
fog API typeHover or focus an info button to see what the parameter changes on the canvas. Select it to keep the card open. Context badges identify Scene-only and Region-only controls; unbadged parameters are available in both. Hover or focus an availability condition to highlight the parameter that controls it.
| Parameter | Control | Default | Range or choices | Availability |
|---|---|---|---|---|
Below Tokens belowTokens | checkbox | Off | — | Always |
Below Tiles belowTiles | checkbox | Off | — | Always |
Below Foreground belowForeground | checkbox | Off | — | Always |
Levels levelsScene only | scene-levels | All Levels | — | Always |
Tint color | color | #000000 (disabled) | — | Always |
Sound FX soundFxEnabled | checkbox | Off | — | Always |
Sound FX Sounds soundFxManualSoundIds | multi-select | Rule default | — | |
Scale dimensions | range | 0.04 | 0–1 · step 0.01 | Always |
Speed speed | range | 0.1 | 0–1 · step 0.01 | Always |
Opacity density | range | 0.5 | 0–1 · step 0.05 | Always |
Direction direction | range | 0 | 0–360 · step 5 | Always |
Synchronized Direction synchronizedDirection | checkbox | Off | — | Always |
Token Trails tokenTrailsEnabled | checkbox | Off | — | Always |
Trail Width tokenTrailWidth | range | 1.1 | 0–2 · step 0.05 | |
Trail Strength tokenTrailStrength | range | 0.85 | 0–1 · step 0.01 | |
Settle Time (Seconds) tokenTrailSettleTime | range | 3 | 0.4–5 · step 0.1 | |
Darkness Activation darknessActivationEnabled | checkbox | Off | — | Always |
Darkness Activation Range darknessActivationRange | range-dual | {"min":0,"max":1} | 0–1 · step 0.01 | |
Edge Fade % fadePercentRegion only | range | 0 | 0–1 · step 0.01 | Always |
Direct-effect API example
Section titled “Direct-effect API example”The Direct Effect API creates a separate row shown through Manage API Effects. Add a stable apiMacro_…_p or apiMacro_…_f ID when later macro calls need to update or stop the same row.
const created = await FXMASTER.api.effects.play({ filters: [{ "id": "apiMacro_wikifogfilter_f", "type": "fog", "options": { "color": "#b9c4c9", "speed": 0.3, "density": 0.45, "direction": 180, "tokenTrailsEnabled": false } }],});
await FXMASTER.api.effects.filters.stop(created.filters);For complete API behavior, scene targeting, stack ordering, and toggle groups, see the Direct Effect API guide.