linebender / bevy_vello

An integration to render with Vello in Bevy game engine.
https://linebender.org/bevy_vello/
Apache License 2.0
118 stars 12 forks source link

Remove layering in favor of z-ordering #8

Closed simbleau closed 8 months ago

simbleau commented 1 year ago

Rather than forcing the developer to use our layers, e.g.

commands
        .spawn(VelloVectorBundle {
            layer: bevy_vello::Layer::Background,
            ..
        })

Wouldn't it make sense to pass in a "z-ordering" or something universally useful?

We used layer as a quick and dirty painter's algorithm implementation but it would be better to use a "z-ordering"

simbleau commented 8 months ago

This was recently implemented