Adds a Trail3D node to Godot.
It is compatible with GDScript, C#, and Rust!
This project is CPU-bound, but it has the benefit of being compatible with the Compatibility renderer. If you're making a game with the Forward/Mobile renderer, you should probably use GPUTrail instead.
This is a port of @axilirate's gist.
This version is rewritten from GDScript to Rust, and it's optimized to remove the expensive list manipulations.
@axilirate's version is a Godot 4.0 port from Oussama BOUKHELF's Godot 3 Trail System
You can view and comply with their license here.
I also added support for a color gradient inspired by KindoSaur's YouTube video.
-
Install the Rust Programming Language if you don't have it (you can check if you have it by running
cargoon the command prompt). -
Download this repo.
-
Run
BUILD.bat(on Windows) orBUILD.sh(on Linux). -
Finally, copy the
addons/SomeRanDev.Trail3D/folder into your project'saddons/folder.
The Trail3D node should not be moved directly; instead, add it as a child to a mobile node.
To make the colors work, add a Material Override and enable Vertex Color -> Use as Albedo (or read from COLOR in a shader material).
If you want transparency, you also need to enable it in the material.
