jabuwu / bevy_spine

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

Support back face culling #4

Open jabuwu opened 1 year ago

jabuwu commented 1 year ago

For some animations, it is preferable to enable backface culling. Currently, it's hardcoded to be enabled for all skeletons:

https://github.com/jabuwu/bevy_spine/blob/920eb6364845a6edef72d9e1098d13bba807a4af/src/materials.rs#L111

Unfortunately, materials cannot be specialized per-instance, so 8 more materials will need to be added (the same 8 materials we have already, but with cull mode enabled). Instead, this might need to rely on #3