Create a lightning in Photoshop. Invert image colors by pressing Ctrl+i or go up to Menu > Image > Adjustment > Invert. Now, go up to Menu > Image > Adjustment > Levels. Drag your result to a new document with stormy clouds and change the blend mode to screen. Repeat those steps to create some different shaped lightning.