jabuwu / bevy_spine

A Bevy plugin for Spine
https://docs.rs/bevy_spine
Other
84 stars 5 forks source link

Simplify material code #3

Closed jabuwu closed 1 year ago

jabuwu commented 1 year ago

Currently, 8 distinct materials need to be created in order to support blend modes. After some investigating, it's possible to remove these materials entirely in favor of a custom render pipeline.

This system in particular would be greatly simplified: https://github.com/jabuwu/bevy_spine/blob/920eb6364845a6edef72d9e1098d13bba807a4af/src/lib.rs#L685-L713