Skip to content

Repository files navigation

UnityLightningGenerator

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.

Quick Start

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.

Known Issue

The SG_Lightning shader will print an error about 'PROCEDURAL_INSTANCING_ON' keyword

About

This is a lightning generator package

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages