This is a lightning generator package for Unity. It uses the Job System and Burst to accelerate lightning tree calculations, and uses the Graphics.RenderMeshPrimitives API to render the lightning.
In Unity: Window > Package Manager > + > Add package from git URL...
Tip
https://github.com/ANAYGrapeTree/UnityLightningGenerator.git
Create an empty GameObject, add a Lightning Sample component to it, then assign the mesh and material from the Resources folder to the component, and you should see the lightning in the scene.
The SG_Lightning shader will print an error about 'PROCEDURAL_INSTANCING_ON' keyword