torsteingrindvik / bevy-vfx-bag

Apache License 2.0
135 stars 8 forks source link

added fading for masks to be able to hide/show them smoothly #85

Closed gavlig closed 1 year ago

gavlig commented 1 year ago

I needed a way to smoothly hide/reveal the mask effect with animation and mask.strength (for crt) wont allow to completely remove the effect from screen even with very high values. So I've added 'fade' to achieve that. gif with fade: fade gif with strength: strength

torsteingrindvik commented 1 year ago

https://github.com/torsteingrindvik/bevy-vfx-bag/issues/86

@gavlig fyi added a follow up to this, perhaps it's possible to normalize the values. Then we'd have both strength and fade in a combined value (maybe).