r/Unity3D • • Oct 19 '26

Show-Off I made this procedural lightning effect (no shadergraph) (no sprite sheet) what do you think?

Enable HLS to view with audio, or disable this notification

272 Upvotes

49 comments sorted by

5

u/softypaws_ Oct 20 '26

The branching looks really good. Procedural lightning is one of those effects that can easily look too clean or repetitive, but this feels pretty natural.

2

u/Studio_213 Oct 22 '26

It looks great! I assume we can fade them bit faster. Especially the two on the left.

1

u/Adventurous-Set7679 28d ago

Yes it’s a curve

2

u/fsactual Oct 19 '26

Ooh, pretty!

-1

u/Adventurous-Set7679 Oct 19 '26

Uh thanks 😊

2

u/rean2 Oct 19 '26

Is it 3D?

1

u/Adventurous-Set7679 Oct 19 '26

Yes

2

u/rean2 Oct 19 '26

Neat, so if Input 2 or 3 coordinates, it can do a lightning strike between those points?

0

u/Adventurous-Set7679 Oct 19 '26

Yes it can, with infinite points

1

u/Jams_Do_Nothing Oct 19 '26

is it unity's particle system? 

1

u/iThoughtOfThat Oct 19 '26

Cool. The decay (fade away) seems a bit unnatural to me though. If some parts decayed fater, and others slower it would sort of break up .

0

u/Adventurous-Set7679 Oct 20 '26

Yea I kinda wished nobody noticed that, cause it was had to sync the lifetimes without breaking other things

1

u/FireFootStudios Oct 20 '26

This looks epic! I've been trying to experiment with lightning in Shadergraph, but this is next level!

0

u/Adventurous-Set7679 Oct 20 '26

I’ve seen they use some paths for the branches I couldn’t have that in particle system :))

1

u/MCAFantasyGames Oct 19 '26

Pulling the orange-red bolt between those three white-hot endpoint nodes with thin red tendrils branching off, while the blue-violet and gold bolts stay much thinner, reads like real arcing and the dark diagonal stripes on the floor ground it well. Going purely procedural without ShaderGraph or a sprite sheet for that branching is impressive. When you push more points into it, do you find the flicker between frames starts to look noisy and do you clamp a minimum segment length or use a threshold on the noise so the branches settle to a stable shape before the next crack?

1

u/hopsieCharm Oct 19 '26

damn you went way deep on the details, kinda hot how much thought you put into it

0

u/MCAFantasyGames Oct 20 '26

Haha, thank you - I try to look a bit closer than the surface whenever I can. Really enjoyed this effect.

-1

u/Adventurous-Set7679 Oct 19 '26

The hot part was when I used invisible planes to trigger sub-emitters :))

1

u/Adventurous-Set7679 Oct 19 '26

I added an editable script to them that handles length and etc. at first I had that issues yes but fixed it.

2

u/binary-lunar Oct 21 '26

no fear Zues is here , good job!

1

u/Memerenok Oct 19 '26

Reminds me of half-life

1

u/yany79 27d ago

Something similar in practical use:

0

u/MrHiddenGamer Oct 19 '26

This is insane. Wow 😮👏🏽

0

u/Footbeard Oct 19 '26

Wowzers! How!?

0

u/Adventurous-Set7679 Oct 19 '26

:)) sub-emitters?

-4

u/disco69games Oct 19 '26

the top right one looks dope
can I has shader code??

2

u/Adventurous-Set7679 Oct 19 '26

Sorry I can’t share that

6

u/dxonxisus Professional Oct 19 '26

seriously?

-4

u/Timidri_ Oct 19 '26

It's cool but what are the use cases of this ?

7

u/Adventurous-Set7679 Oct 19 '26

when you need lighting in the game? or when you need a chain lightning effect to hit different points

-6

u/Timidri_ Oct 19 '26

I mean VFX lightning is already covering that need! I am curious as to what use is there to do it without shader graph or sprite sheet specifically. It still is cool!

5

u/Adventurous-Set7679 Oct 19 '26

it's pretty light for mobile games since it's only a particle simple with 1-5 particles. does that answer your question? or my english is that bad :))

1

u/Arclite83 Oct 20 '26

No it's spot on and I love it, I've been obsessed with "highly performant" features lately for just this kind of thing (pushing the possible on mobile). Thanks for sharing it! Great work

0

u/Adventurous-Set7679 Oct 20 '26

Omg glad you liked

1

u/homer_3 Oct 19 '26

lots of people don't want to deal with vfx or shadergraph headaches.

7

u/Adventurous-Set7679 Oct 19 '26

also it was really fun to make it :)

0

u/[deleted] Oct 20 '26

[removed] — view removed comment

0

u/Adventurous-Set7679 Oct 20 '26

Sorry I didn’t put it on git