Procedural Lightning Thread. Ask all your questions or show off your games here!
→ Download Procedural Lightning From the Unity Asset Store ←
Procedural Lightning and Thunder is an optimized drop in solution for lightning, electricity, thunder effects and even general line effects in your Unity project or game.
This isn’t any ordinary lightning. Using an innovative shader that allows fading in and out, growth, billboarding and glow entirely on the GPU in one draw call, this lightning will run great on mobile and desktop alike.
You will get 5x CPU improvement and 10x LESS draw calls vs. the Unity line renderer, allowing you to show lightning even on low-end mobile devices. All lightning renders and updates on the GPU! There is even an option to generate the lightning on a background thread, freeing your main thread for other tasks.
Most other lightning solutions use the Unity line renderer which doesn’t batch and has high CPU usage, especially for something with lots of lines and glow like lightning. Think of billboarding and coloring every line on the CPU every frame. YUCK! With this asset, the graphics card takes care of that so your CPU can do more important tasks.
Supports perspective, orthographic and orthographic xz planes.
I’ve added a nice spell system with force lightning, lightning beam, lightning ball, charged bolt and lightning whip. Easily extensible and customizable.
If that weren’t enough, you also get 17 high def thunder sounds. I’ve literally spent weeks on end of my life making this the best lightning in the asset store, and I know it will serve you well.
Here’s the full run-down on what Procedural Lightning and Thunder for Unity can do for you:
- A configuration scene to help you get the exact look you want for your lightning. Tweak the detail, width, glow, duration, chaos, forkedness, direction and much more. Bolts can be randomized with a seed to get the same bolt.
- One click to get the exact code and script to reproduce your lightning bolt.
- Manual and automatic mode for the script. Trigger your customized prefab manually or let it run automatically.
- A robust lightning script that lets you create lightning strikes with a large selection of parameters with near infinite possibilities.
- Lightning works great in many scenarios: thunderstorms, magic spells, static discharge and much more!
- Lightning branches fade in, jitter and grow to make your lightning really come alive.
- Storm cloud particle system that looks stunning when lit up by lightning.
I’ve also included a more high level script if you just want storm lightning in your game without having to configure very much stuff. This script contains:
- Normal and intense lightning strikes with appropriate brightness, thunder delay and thunder volume.
- Cloud only lightning option.
- 17 distinct thunder sounds.
- Random range of time for the next lightning strike.
- Option to illuminate the skybox when there is a lightning strike.
- Random range of lightning intensity.
- Force a lightning strike via script.
- Lightning centered around the main camera by default.
- Option to try and make sure every lightning strike is visible by the camera.
- Dark cloud particle system for storm clouds.
- Demo scenes showing some terrain and water with the ability to call lightning with keystrokes. Procedural Lightning for Unity also contains an advanced lighting system that allows you to generate point lights along the paths of your lightning for that extra realistic effect.
This asset contains a batch of prefabs to create lightning bolts, sphere lightning, cone lightning, lightning fields, arcs of electricity and chain lightning. 17 high def thunder sounds, as well as a storm cloud particle system that looks amazing when lit up by lightning, are also included. You can even seed your lightning to get the same appearance.
Don’t spend time making lightning effects yourself from scratch. Save yourself time and money with this powerful yet easy to use plugin.
This asset is demonstrated in a HereVR sci-fi pack video, viewable from here: Hibernation Pods - SC19 - HereVR Sci-Fi Project | 3D Sci-Fi | Unity Asset Store
Games using procedural lightning: - Doomwheel
Please read the Readme.txt file to get the most out of this asset. I am available at jjxtra@gmail.com to answer questions and help you out.
Best wishes for you and your project.
→ Download Procedural Lightning From the Unity Asset Store ←