FraserLee / bevy_sprite3d

Use sprites in a 3d bevy scene.
MIT License
144 stars 22 forks source link

Possibility to control Sprite3d's AlphaMode #12

Closed bardt closed 1 year ago

bardt commented 1 year ago

Rationale

Currently AlphaMode of the sprite's PBR material is managed by the crate. While providing meaningful defaults, this limits the range of visual effects that can be achieved.

Feature request

Add an optional field to AtlasSprite3d with type Option<AlphaMode>allowing to override final material's alpha mode.

FraserLee commented 1 year ago

Happy to add this, it sounds useful. I'll either get to it when my school work calms down a bit, or someone else can have a crack at a PR and I can merge it in.

bardt commented 1 year ago

@FraserLee I've opened a PR, but decided to replace the field instead of adding another one. I would love your feedback and will change it if you think a different API design would be better.