Skip to content

lightning

Branching lightning bolts.

Field Type Default Description
type "lightning" required Track type.
name string Optional name, used in error messages.
start number 0 When the track starts, in seconds.
end number -1 When the track ends, in seconds. Defaults to the end of the effect; looping effects run forever.
at attach Where the track sits.
material material How the track is shaded.
to attach End point. Defaults to the target; without one bolts strike random points within radius.
radius number 3 Strike radius when there is no end point.
bolts integer 1 Bolts alive at once.
rate number 12 Re-strikes per second.
jagged number 0.25 How far bolts zig-zag, as a fraction of length.
branches integer 3 Side branches per bolt.
detail integer 5 Subdivision depth; each level doubles the kinks.
width number 0.08 Width in blocks. t runs along the bolt.
color color "#9fd8ff" Glow colour.
core_color color "#ffffff" Core colour.