Which file to download, how to set it up in Godot, Unity or Unreal, every effect with its settings, calls and signals, the ground circle settings, and how to cast them from code and Blueprint.
One pack, four downloads. Take the one for your engine; they hold the same 19 effects.
On itch.io all four downloads come with the one purchase.
Recorded in the Godot version on the pack's dark floor, before 1.1.0: the ground circles in these clips have the original rim line, which since 1.1.0 is off by default (see Ground circles above). Unity and Unreal draw the same effects. The lasting effects (Static Field, Lightning Rod, Tempest, Eye of the Storm, Overcharge, Tailwind, Storm Lantern) last as long as their lifetime and end by themselves; stop(secs) fades any effect out sooner, and looping keeps one going (a lantern on a shrine). The Static Trap waits for trigger() when its delay is 0; the Storm Shield with demo off stands until shatter(). In Unity a lasting effect's lifetime 0 keeps it until End(); in Unreal set Lifetime long (600 s) and End puts it out.
Godot
Every effect node has autoplay, looping, free_when_done, size (1 is for a figure 1.8 m tall), preview_in_editor, and its colours tint (deep storm blue), core (the warm white of lightning), accent (spark yellow) and brightness. play() runs it again; stop(secs) lets it go (0.3 s by default): what shows fades out, nothing new starts, looping turns off; the signal finished(fx) says when it is over. Ground circles (the warnings and charged grounds on the floor): circle_rim (the crisp edge line, 0 by default), circle_edge_fade (how much the fill fades toward the edge, 1 by default; never the rim) and circle_opacity (all of it, 1 by default) in each effect's "Ground circles" group, -1 taking the game's setting; for the whole game Project Settings > Hazard Ground > Circle Rim, Circle Edge Fade, Circle Opacity; at run time StormHazardFx.circle_rim, circle_edge_fade, circle_opacity. For the whole scene: StormHazardFx.quality (0, 1 or 2: detail of the marks on the floor) and StormHazardFx.ground_brightness (0 to 1.5; raise it on pale floors so the marks stay readable).
Unity
Every effect's component has autoplay, looping (plays again 0.6 s after it ends), destroyWhenDone, exactClock (re-simulates to its clock every frame: recordings, slow motion), and its colours tint, core, accent and brightness (0 to 4); radius and windUp on the effects that have them. Play() runs it again; Stop(secs) lets it go (0.3 s by default): what shows fades out, nothing new starts, its marks on the ground go out their own way, looping turns off. Colours and brightness can change while it plays (Recolour() forces it); Scrub(t) shows the moment t exactly (Timeline). To read: T (its clock), Duration, Strike, Playing, Done. Ground circles: circleRim, circleEdgeFade, circleOpacity on the component (-1: the project's), also while it plays; for the project the asset Runtime/Resources/StormLightGroundCircles (Tools > Storm Light > Ground Circle Settings); at run time for everything StormFx.CircleRim, StormFx.CircleEdgeFade, StormFx.CircleOpacity, and StormFx.ReloadCircles() reads the asset again. They take effect in Play mode; the Scene view outside Play shows the circles as built. Every part is an ordinary Particle System under the prefab: edit its modules as you would any other; the lightning, streams, circles and runes are one mesh particle each, laid out by their shader from a small texture of the part's timeline. The code is in namespace OddJelly.StormLight, the components under Add Component > Storm Light.
Unreal
Every Niagara system has the same User parameters first: Tint, Core, Accent, Brightness (0 to 4), Size (1 for a figure 1.8 m tall), then its own. Set End to 1 to let it go over EndSecs (0.3 as made), then deactivate it. BP_StormEffect wraps any system as an actor: Play, Stop (Secs), End (Secs), Recolour, Aim (From, To), Face (From, To), Targets (Places), Hit (From), Shatter, Trigger, Carry (Body), and the events On Strike (Location) and On Finished; an effect ignores calls it does not use. Times are seconds, distances metres (Source, Target0-2: centimetres relative to the effect, as Unreal places things). Ground circles: for the whole game the Material Parameter Collection Ground/MPC_SL_GroundCircles (Rim, EdgeFade, Opacity; also at run time with Set Scalar Parameter Value, or BP_StormEffect's Set Global Ground Circles); for one effect its User parameters CircleRim, CircleEdgeFade, CircleOpacity (-1: the collection's), or BP_StormEffect's Set Ground Circles. The looping versions of every effect are in Effects/Looping/NS_Storm<Name>_Loop for showcases; in a game use the systems in Effects/.
Godot GDScript
# A Thunderstrike at the target's feet: it plays at once and frees itself.
var strike := StormThunderstrike.new()
strike.wind_up = 1.4
strike.impact.connect(_on_thunderstrike) # the moment to deal the damage
add_child(strike)
strike.global_position = target.global_position
# A lightning bolt from the caster's hand to the target, in violet
var bolt := StormLightningBolt.new()
bolt.tint = Color(0.6, 0.3, 1.0)
add_child(bolt)
bolt.aim(caster.global_position, target.global_position)
# Chain lightning on to three more places, a hit on each
var chain := StormChainLightning.new()
chain.targets.assign([Vector3(2, 0, -3), Vector3(5, 0, -4), Vector3(5, 0, 0)])
add_child(chain)
chain.aim(caster.global_position, first_target.global_position)
chain.hit.connect(func(i, at): _damage_at(at))
# A trap that waits for your game
var trap := StormStaticTrap.new()
trap.delay = 0.0
add_child(trap)
# when something steps on it: trap.trigger()
# A shield on the player, struck, then broken
var shield := StormShield.new()
shield.demo = false
player.add_child(shield)
# when a blow lands: shield.hit(enemy.global_position)
# when it breaks: shield.shatter()
# Ride the Lightning, carrying the caster
var ride := StormRideTheLightning.new()
ride.subject = caster
add_child(ride)
ride.aim(caster.global_position, destination)
# Softer ground circles for the whole game (a player's option), or the 1.0 look
StormHazardFx.circle_edge_fade = 1.0
StormHazardFx.circle_rim = 0.0
# StormHazardFx.circle_rim = 1.0; StormHazardFx.circle_edge_fade = 0.0 # the original crisp circles
Unity C#
using UnityEngine;
using OddJelly.StormLight;
public StormThunderstrike strikePrefab; // Assets/StormLight/Prefabs/StormThunderstrike
public StormLightningBolt boltPrefab;
public StormStaticTrap trapPrefab;
public StormShield shieldPrefab;
void Cast(Vector3 target)
{
var strike = Instantiate(strikePrefab, target, Quaternion.identity);
strike.windUp = 1.4f;
strike.OnImpact += s => DealDamage(target, s.Radius);
}
void Zap(Transform caster, Transform target)
{
var bolt = Instantiate(boltPrefab, target.position, Quaternion.identity);
bolt.Aim(caster.position, target.position);
bolt.OnImpact += b => DealDamage(target.position, 1f);
}
// A trap that waits: Trigger() sets it off
StormStaticTrap Arm(Vector3 at)
{
var trap = Instantiate(trapPrefab, at, Quaternion.identity);
trap.delay = 0f;
trap.OnTriggered += t => DealDamage(at, t.Radius);
return trap; // later: trap.Trigger();
}
// Storm Shield: turn demo off, then shield.Hit(attacker.position); shield.Shatter();
// Any effect: fx.Stop(0.8f) lets it go; fx.tint = ... changes it while it plays; fx.Done once it is over.
// Ground circles for everything at once: StormFx.CircleRim = 1f; StormFx.CircleEdgeFade = 0f; (the 1.0 look)
void DealDamage(Vector3 at, float radius) { }
Unreal Blueprint
- Spawn System at Location: System
NS_StormThunderstrike, Location the target's feet. Keep the returned Niagara component. To follow someone (Storm Shield, Overcharge, Tailwind): Spawn System Attached. - Set Niagara Variable (Float) on it:
WindUp 1.4. Colours with Set Niagara Variable (Linear Color): Tint, Core, Accent. - To let a lasting one go: Set Niagara Variable (Float)
End = 1, then Deactivate it. - Game side: spawn a BP_StormEffect actor instead, set its System, and call Play, Aim (From, To) (Lightning Bolt, Chain Lightning, Ball Lightning, Storm Javelin, Ride the Lightning, Grounding), Face (From, To) (Forked Volley, Squall, Tailwind), Targets (Places) (Chain Lightning), Hit (From) and Shatter (Storm Shield), Trigger (Static Trap), Carry (Body) (Ride the Lightning) or End (Secs) on it; bind your damage to On Strike (Location) and your clean-up to On Finished.
- Unreal has no signals per hit: what Godot signals is a moment on the effect's clock (a Thunderstrike lands at
WindUp). Use On Strike or a timer of your own. Maps/Examples (BP_StormExamples) shows seven of these working, keys 1 to 7: cast at a target's feet and know when it is done, aim at a target, a ward struck and shattered, a trap armed and set off, a bolt that jumps from target to target, a lasting effect ended by hand, the pack's effects cast one after the other from a list.
It looks dull or flat.
Turn on bloom: in Godot Glow in the WorldEnvironment, or storm_look.tres as it is; in Unity URP a Volume with Bloom and ACES and the camera in HDR (Tools > Storm Light > Set Up Bloom); in Unreal BP_StormLook or your own post-process. The effects are light made to bloom. Raise brightness over 1 for more glow. On snow or sand raise StormHazardFx.ground_brightness (Godot) so the marks on the floor stay readable.
The circles on the ground are too strong, or I want the old look back.
Since 1.1.0 the warnings and grounds on the floor take three settings, each 0 to 1: rim (the crisp edge line), edge fade (how much the fill fades toward the edge; it never fades the rim) and opacity (all of it; 0 draws none, the signals and the game logic still work). The default is rim 0, edge fade 1, opacity 1: a soft circle that fades out with no rim line. Rim 1 + edge fade 0 gives the original crisp circles of 1.0, drawn exactly as they were. Set them for the whole game (Godot: Project Settings > Hazard Ground; Unity: Tools > Storm Light > Ground Circle Settings; Unreal: MPC_SL_GroundCircles), at run time for a player's option, or per effect. They change only the look: sizes and timing stay the same.
URP or the Built-in renderer?
Both. The Particle System version runs in URP and in the Built-in renderer with the same shaders (plain HLSL); only bloom is set up differently: a Volume in URP, the Post Processing package (or the demo's StormDemoLook) in Built-in. The VFX Graph version is URP only. HDRP is not tested.
Do I need the VFX Graph package?
No. The Particle System version is complete on its own. The VFX Graph version is an extra for URP projects that use VFX Graph: install Visual Effect Graph from the Package Manager, then import StormLight_VFXGraph.unitypackage from the StormLight folder. It adds a .vfx graph and a prefab for every effect (StormThunderstrike_VFX...) driven by the same component and calls, and its own demo scene (StormShowcase_VFX). Without the package, don't import it.
Which engine versions and renderers are tested?
Godot 4.4, 4.5, 4.6 and 4.7, in Forward+, Mobile and Compatibility: the showcase and each effect on its own in each renderer, and every effect driven from code by a test in each version. Mobile draws them as Forward+ does; Compatibility draws the same effects with a softer glow. Unity: the Particle System version in 6000.0, 6000.3 and 6000.6, each in Built-in and URP; the VFX Graph version in 6000.0 and 6000.3. Unreal 5.4, 5.5, 5.6, 5.7 and 5.8: each download opened as a buyer gets it and cooked, with every system, Blueprint and example checked.
The web?
Every effect also plays in a browser build of the Godot version, which uses the Compatibility renderer; the playground on the itch.io page is one. For weak devices, StormHazardFx.quality 0 lowers the detail of the marks on the floor.
Why is the download so small?
Every effect is drawn by shaders on simple meshes and built in code: no flipbooks, no sprite sheets, one small shared noise texture and two small rune sheets. So the Godot download is about 1 MB and the effects stay sharp at any resolution and any distance.
Can I change the colours?
Yes, every effect, in every engine: tint (deep storm blue by default), core (the warm white of the bolts), accent (the spark yellow) and brightness. A violet or a red storm is a change of tint. They can change while an effect plays: Godot and Unity follow at once, Unreal through Recolour on BP_StormEffect.
Can I change the runes?
In Godot the Static Trap takes a rune_style (a StormRuneStyle resource: alphabet, line weight, glow, a colour of its own) and a list of runes (numbers 0 to 15); edit addons/storm_light/rune_styles/runic.tres to change every rune of the pack at once, and extras/make_rune_sheet.py draws an alphabet of your own (Python 3 with numpy and Pillow). Two alphabets come with it, Runic and Astral. In Unreal the four effects with runes (Thunderclap, Static Trap, Eye of the Storm, Grounding) take RuneStyle (0 Runic, 1 Astral), RuneWeight and RuneGlow; their band's runes are picked by chance.
What do they cost to run?
Run the benchmark on your own machine: in Godot storm_light_demo/benchmark.tscn, in Unreal Maps/Benchmark. Both have 1 Horde, 2 Raid, 3 Everything (all 19 x 5), + / - for more or fewer, with a live readout. What costs most is soft light filling the screen (keep big effects away from the camera on weak machines, or lower the resolution scale) and starting many effects a second. Godot: each effect builds its parts when it plays, so reuse one with play() if you cast hundreds; the first time an effect is drawn the driver builds its shaders, so play each one once behind your loading screen. Unity: leave exactClock off in a game (it re-simulates every frame). Unreal: every system has a Niagara Effect Type, so far-off and surplus effects are culled by Unreal's scalability (Effects quality: up to 150 m at Epic, 60 m at Low).
What is not the same in Unreal?
Counts that are settings in Godot are fixed at Godot's defaults (Thunderstrike's 11 floor bolts, Thunderclap's 7, Forked Volley's 7 bolts, Chain Lightning's three targets, Static Field's 8 pylons, Static Trap's 7 bolts, Overcharge's 7 prongs, Storm Lantern's 4 threads, and the streams of Tempest, Squall, Eye of the Storm and Tailwind). The lightning is thrown ahead and baked, so other timings play the same throws faster or slower. There are no signals: use BP_StormEffect's On Strike or a timer.
Will it clash with another pack of ours?
No. In Godot each pack carries its own copy of the marks on the floor under its own names (here StormHazardGround, StormHazardMark, StormHazardFx), so packs never get in each other's way, whatever order you install them in. In Unity everything lives in Assets/StormLight, its code in namespace OddJelly.StormLight; Storm Light and Nature's Light import into one project. In Unreal it lives in its own folder, /Game/StormLight.
Every effect is our own code and shaders, and no outside assets are included.