EmiOnGit / warbler_grass

A bevy plugin for creating 3d grass in your game
Apache License 2.0
120 stars 11 forks source link

Use Bevy 0.12 #73

Closed janhohenheim closed 4 months ago

janhohenheim commented 4 months ago

Resolves #72 This compiles so far, but no grass is actually visible

EmiOnGit commented 4 months ago

Hey @janhohenheim, I actually have a branch where I already implemented most of the migration (Some of which gave me a bit of headache since it was not listed in the migration guide or blog post). You can integrate/compare to my branch if you want to :) (https://github.com/EmiOnGit/warbler_grass/tree/bevy-0.12) The main problem was that the mesh uniforms, such as the Transform, are now batched and stored in a array automatically without a great way to retrieve the index of a given instance when manually implementing instancing. I think I got it to work today. However, it seems that only the nearest chunk is currently sent to the gpu for any reason. If we happen to find the bug causing that, I think the migration would be complete

janhohenheim commented 4 months ago

@EmiOnGit oh, whoops, should have checked that, haha

janhohenheim commented 4 months ago

There you go, rebased my changes on top of yours. Deleting this branch now.

EmiOnGit commented 4 months ago

That's great, thank you :)

janhohenheim commented 4 months ago

I can confirm that quite a few things are unfortunately not documented in the migration guide at all 😅 Especially things that happened for Asset V2