jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.15k stars 169 forks source link

Implement Inspectable for Mesh2dHandle with color attributes #51

Closed tversteeg closed 2 years ago

tversteeg commented 2 years ago

This will render a plot with all the triangles of the mesh, which only applies when the mesh has color attributes. The first vertex color is used to group the different colors together, which you can see in the legend.

Code isn't the prettiest in the world with all the nested if let statement, but it should be pretty sturdy.

It looks like this:

image

jakobhellermann commented 2 years ago

Very cool! Thanks for the PR.