celyk / GPUTrail

A GPU based trail plugin for Godot 4
MIT License
56 stars 5 forks source link

[improvement] GPUTrail 2D variant #2

Open francogp opened 2 months ago

francogp commented 2 months ago

Could this be adapted to a 2D version, or would it require a complete rewrite? I can try, but I need a confirmation.

celyk commented 2 months ago

Yes I think so. I initially planned to make a 2D version, and I avoided features that aren't available in 2D or Godot 3.x. You might find it easier to branch from https://github.com/celyk/GPUTrail/commit/3c1926b87d5fd703dff975953e59d2a4cbfea597 since it's cleaner

You'll have to go in each file and change all the 3D stuff to 2D stuff. I wish there was a unified way to support both. Just throw away the Z component of the trail! You can use a SubViewport to get the trail into 2D as well.

Talent-Lost commented 3 weeks ago

Did you ever adapt this to 2d? I'd love to see what that looks like