Lightsabers with movement trail in Unity (with source)

Опубликовано: 28 Сентябрь 2024
на канале: Roland C
11,460
147

Toying around with Unity. For training I tried to find a trail for weapons, in this case lightsabers. The trail renderer of Unity wasn't sufficient enough. I think this one looks acceptable now. The glow is created with the postprocessing stack and a custom shader. The trail is created using a slight modification of the rpg weapon trail asset which itself is a modification of the unity tron trail.

Feel free to get the source from here:

https://github.com/WeCode4Fun/Lightsa...

Next to come: colliders, sparks and melting metal with the lightsaber.

References:

* Post Processing Stack
https://www.assetstore.unity3d.com/en...

* Pocket RPG Weapon Trails
https://www.assetstore.unity3d.com/en...

* Procedural Examples (includes the Tron Trail renderer)
https://www.assetstore.unity3d.com/en...


Edit: 2020-03-22: If you need the Unity 2019.3 version, feel free to get it from the link in this description:    • Lightsabers with Trail - Unity 2019.3+