Skip to content

Fog

Environmental reference
FXMasterFilter effectAPI type: 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
  • 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.
  • 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.
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

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.

19 exposed parameters1 Scene-only1 Region-onlyfog API type

Hover 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.

ParameterControlDefaultRange or choicesAvailability
Below Tokens
belowTokens
checkboxOffAlways
Below Tiles
belowTiles
checkboxOffAlways
Below Foreground
belowForeground
checkboxOffAlways
Levels
levelsScene only
scene-levelsAll LevelsAlways
Tint
color
color#000000 (disabled)Always
Sound FX
soundFxEnabled
checkboxOffAlways
Sound FX Sounds
soundFxManualSoundIds
multi-selectRule default
Scale
dimensions
range0.040–1 · step 0.01Always
Speed
speed
range0.10–1 · step 0.01Always
Opacity
density
range0.50–1 · step 0.05Always
Direction
direction
range00–360 · step 5Always
Synchronized Direction
synchronizedDirection
checkboxOffAlways
Token Trails
tokenTrailsEnabled
checkboxOffAlways
Trail Width
tokenTrailWidth
range1.10–2 · step 0.05
Trail Strength
tokenTrailStrength
range0.850–1 · step 0.01
Settle Time (Seconds)
tokenTrailSettleTime
range30.4–5 · step 0.1
Darkness Activation
darknessActivationEnabled
checkboxOffAlways
Darkness Activation Range
darknessActivationRange
range-dual{"min":0,"max":1}0–1 · step 0.01
Edge Fade %
fadePercentRegion only
range00–1 · step 0.01Always

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.