Lightning/Shock Aura Effect

A pretty lightning/electric/shock aura effect I made in Unity using ShaderGraph and VFX graph. For use in my asymmetrical VR game Mystro
Based on this tutorial from MinionsArt: https://youtu.be/NMTXHnsxgss

Video

Tutorial

Create a bolt effect using thin lines and strokes, or simply download the one below.

Create a mesh in the modelling program of your choice and fill the UV

Create an unlit ShaderGraph. Transparent, Additive, No Shadows. Sameple the texture we created.
Use Time and Tiling and Offset nodes to move the UVs. You can also add variables for the tiling/speed.
Pass this into a Step and experiment with the values to see the range required to get it to vanish.
Multiply it by a colour.

Create a Visual Effect. Set a low constant spawn and a burst spawn with a random delay.
Initialise the lifetime and size and then position it on a sphere.
Output to a mesh using our ShaderGraph and mesh.
Sample a Curve by the Particle Life and use that to set the Strength of the Step.
Multiply the Size Over Life to grow a little over time.
Use an Orient node based on the current position to face the particles to the centre.
Make sure the particle is all in local space.

Enjoy your effect!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.