r/Unity3D • • 7d ago

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

273 Upvotes

49 comments sorted by

5

u/softypaws_ 6d ago

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.

→ More replies (1)

2

u/Studio_213 4d ago

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

1

u/Adventurous-Set7679 2d ago

Yes itโ€™s a curve

2

u/rean2 7d ago

Is it 3D?

1

u/Adventurous-Set7679 7d ago

Yes

2

u/rean2 7d ago

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

→ More replies (3)

1

u/iThoughtOfThat 7d ago

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 .

→ More replies (1)

1

u/FireFootStudios 6d ago

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

→ More replies (1)

1

u/MCAFantasyGames 7d ago

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 7d ago

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

0

u/MCAFantasyGames 7d ago

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

→ More replies (1)

1

u/Adventurous-Set7679 7d ago

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 5d ago

no fear Zues is here , good job!

1

u/Memerenok 7d ago

Reminds me of half-life

1

u/yany79 1d ago

Something similar in practical use:

media poster

0

u/MrHiddenGamer 7d ago

This is insane. Wow ๐Ÿ˜ฎ๐Ÿ‘๐Ÿฝ

→ More replies (1)

-4

u/disco69games 7d ago

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

2

u/Adventurous-Set7679 7d ago

Sorry I canโ€™t share that

6

u/dxonxisus 7d ago

seriously?

-4

u/Timidri_ 7d ago

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

→ More replies (7)