Repository navigation
Storm Darkness
When a storm shuts the sky altogether by day, the outdoors dims. By default that's only a look. A separate setting can make it real.
The sky has to close completely:
- a thunderstorm, a blizzard, or another weather with a fully closed sky
- Cloud cover at or near full in the Weather Panel
Plain cloud and overcast only dull the day. Technically, the dimming starts only above 90% cloud cover.
It also needs Weather light and Clouds over the map on. It's a little darker in rain, and it fades away as real night comes on, so night is no darker for it.
Lamps, torches and fires show up against the dark, as far as walls let their light go, and a lightning strike lifts it for a moment. Light from indoors spills out through open doors and windows as it does at night, only fainter.
| Look only (default) | Storms change the scene's darkness on | |
|---|---|---|
| What changes | What's drawn on each screen | The scene's real Darkness Level |
| Vision and rules | Unchanged: nobody sees less | Foundry's vision, PF2e light levels and PF2e Visioner all follow it |
| How dark | Storm darkness sets it. The look stays readable, stopping at 85% strength. | Storm darkness sets it, and 100% is fully dark. |
| When the storm ends | The look fades | The Darkness Level goes back, easing over a few seconds |
Past the scene's global light limit, creatures without darkvision or a light lose sight of the outdoors. That can blind a party mid-fight, so try it on a test scene first. A lower Storm darkness value keeps the scene below that limit.
- The scene keeps following the clock during a storm. If the clock or a GM sets the darkness while the storm holds it, that value is what it returns to afterwards.
- Small changes wait, so a gust of wind doesn't save the scene over and over.
- A GM has to be connected, because the GM's client writes the change.
- It won't touch a scene whose darkness is locked in Foundry's scene settings.
- With Darkness follows the sun on (new in 3.7.1), the sun sets the darkness the storm returns to, in the same way as the clock does. A storm still darkens the scene further. Since 4.1.0 that darkness follows the real twilight, so a storm at dusk darkens a scene that is already darkening. See Sun Moon and Shadows.
- Lamps and torches on the ground. New in 4.0.0. Read from the code, not tested live. The light Animater draws from lamps on floors, water and snow follows the scene's real darkness. With real darkness on, a storm brings that light out as dusk does. In Look only mode it stays at its daytime strength, though the storm's own wash still lets lights show up against it.
| Setting | Everyone (GM) | My screen | Choices or range | What it does |
|---|---|---|---|---|
| Weather light | On | On | — | The weather lights the outdoors its own way: a grey sky's flat, cool light, rain's grey-blue, a thunderstorm's dark green-grey (deeper the fiercer), falling snow's pale cold, a sandstorm's dusty amber; over the roofs too, while a room you look into keeps its own light. Stands in for Calendaria's “Sync Scene Ambience with Weather”, which colours the whole scene one hue (turned off while this is on). Drawn at Balanced quality or better. |
| Storm darkness | 0.5 | — | 0 to 1 | How dark the outdoors gets by day when a storm shuts the sky altogether (a thunderstorm, a blizzard, or Cloud cover at full): 0 not at all, the default about dusk. Plain cloud and overcast only dull the day. Lights show up against it. A scene can say otherwise in the Weather panel. |
| Storms change the scene's darkness | Off | — | — | A storm that shuts the sky raises the scene's real Darkness Level, and puts it back when the storm ends, so vision, the rules and modules that read it (PF2e light levels, PF2e Visioner) treat it as the darkness it is. Storm darkness says how far: at 100% the scene is fully dark. Past the scene's global light limit, creatures without darkvision or a light lose sight of the outdoors. Off: storm darkness is only a look. A scene can opt out in its configuration. |
The Storm darkness setting runs from 0 to 1, where 1 is the 100% this page talks about.
| Field | Where | What it does |
|---|---|---|
| Storm darkness slider | Weather Panel, under Sky | This scene's own value, in place of the world's. Default when untouched: follows the setting above. |
| Storms leave the darkness alone | Scene configuration → Animater | With the real-darkness setting on, storms here are only a look. |
| No weather on this scene | Scene configuration → Animater, or the panel's No weather | No storm, so no storm darkness. |

The scene fields in Scene configuration. Storm darkness itself isn't pictured.
- The Weather panel's tooltip on its Storm darkness slider says "Only a look: nobody sees less by the rules". That's true only with Storms change the scene's darkness off. With it on, the slider sets real darkness.
The behaviour above comes from the code and the 3.2.0 and 3.2.1 changelog, and was read again against the code after 3.8.12 and at 4.9.0. Nothing in the 4.x changelog changes how storm darkness works. The effect on PF2e and PF2e Visioner wasn't tested in a live game while writing this page.
Weather Panel · Sun Moon and Shadows · Integrations
For developers and the curious. Read from the 3.2.2 code, with 3.3.0's changes added, and not run or measured.
Source: scripts/engines/motion/storm-darkness.mjs for the real darkness, stormGloom in sky-light.mjs for the look, and the wiring in scripts/main.mjs.
stormGloom is zero until cloud cover passes 0.9, then a smoothstep up to most. Rain adds up to 25%. It's capped at cap, default 0.85, and multiplied by 1 - darkness, so it fades as real night comes on and as real darkness rises.
most is the panel's slider if set, otherwise the cloudDarkness setting, default 0.5. It needs both weatherLightOn() and weatherCloudsOn().
It's drawn in the veil pass (mode 4) of the surface light shader: a cool wash, multiplied down near lights by lampsOn and by 1 - uGloomLift during a lightning flash. flash() sets uGloomLift to level * 0.85. Fog and what falls are composited after it. It writes nothing to the scene.
storm-darkness.mjs draws nothing. It works out what to write.
-
On only if
stormSceneDarknessis on, the scene'sstormDarkOffflag isn't set, andenvironment.darknessLockisn't set. -
Target:
stormGloomagain, withcap: 1and without the darkness argument. BelowSMALLEST = 0.02it counts as none. -
Writer: only the lead GM's client. After a 1500 ms delay it calls
scene.updatewithanimateDarkness: 4000. -
State:
flags.animater.stormDark = { base, target }. Target changes understep = 0.05are ignored, and when the storm ends it restoresbase. -
Others setting darkness: a
preUpdateScenehook turns their value into the newbasewhile the storm holds its own level.
The target is gated on weatherLightOn() && weatherCloudsOn(), which include the quality rank and ...Local settings. So a lead GM at Low quality, or with those switches off on their own screen, would compute no storm and restore the darkness for everyone. That comes from reading the code and wasn't tested.
Comment and code differ: the Weather panel's slider tooltip and a comment on stormGloom both say this is only a look. That holds only with Storms change the scene's darkness off.
Getting going
Animations
- The Animater Workspace
- Spell and Action Animations
- Recipe Studio and Finishers
- Looks and Tokenshade
- Combat Drama
- Moments
- Handouts and Arrivals
The world
- Weather Panel
- Storm Darkness
- Snow and Wet Ground
- Sun Moon and Shadows
- Water
- Map Painting
- Buildings
- Region Steps and Painted Floors
- Decorations
- Floor Regions
- Windows and Doors
- Breakable Props
- Fire and Lights
- Fire and Smoke
- Wildlife and Town Life
- Caves and Underground
Creatures and sound
Reference