# Lightning effect with unity custom data

**URL:** <https://realtimevfx.com/t/lightning-effect-with-unity-custom-data/2620>\
**Category:** Resources & Knowledge\
**Tags:** shaders, unity\
**Created:** [June 29, 2017, 7:13am UTC](https://realtimevfx.com/t/lightning-effect-with-unity-custom-data/2620 "2017-06-29T07:13:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanzeng](https://realtimevfx.com/user_avatar/realtimevfx.com/ryanzeng/32/8181_2.png) [@ryanzeng](https://realtimevfx.com/u/ryanzeng)\
**Post date:** [June 29, 2017, 7:13am UTC](https://realtimevfx.com/t/lightning-effect-with-unity-custom-data/2620/1 "2017-06-29T07:13:31Z")

</div>

Hi guys! Here is what I try some time ago with Unity custom data to create the lightning effect. I share my shader tree that made by shader forge 1.35. I keep trying to create more better one with custom data.  
I appreciated any suggestion or comment. Cheers! 😀

[![](https://img.youtube.com/vi/be6WZKYSFJI/maxresdefault.jpg "Unity 5.6beta CustomData Lightning") ](https://www.youtube.com/watch?v=be6WZKYSFJI)

 ![](https://realtimevfx.com/uploads/default/original/2X/a/a241b46ccaf6f621d965bd35cb290ab2f3d0ac98.jpg)

/  
The texture made by AE.

 ![](https://realtimevfx.com/uploads/default/original/2X/0/0376d44d698190d50f9996ee879e192b883c6c9b.jpg)

 ![](https://realtimevfx.com/uploads/default/original/2X/c/c51b7515e79f7fec215b316e5f6918cfee3640b4.jpg)

This is basic custom data setting with shader forge.

 ![](https://realtimevfx.com/uploads/default/original/2X/1/13800406c221ec619bb370260c6a45396b4eac7f.jpg)

---

<div class="post-metadata">

**Author:** ![Konstantine\_Zhurakov](https://realtimevfx.com/user_avatar/realtimevfx.com/konstantine_zhurakov/32/9510_2.png) [@Konstantine\_Zhurakov](https://realtimevfx.com/u/Konstantine_Zhurakov)\
**Post date:** [January 17, 2019, 1:32pm UTC](https://realtimevfx.com/t/lightning-effect-with-unity-custom-data/2620/2 "2019-01-17T13:32:08Z")

</div>

**IT’S AWESOME**  
Thanx A Lot! 🙏  
You’ra Awesome 💎
